]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/timer.cpp
Slider Updates
[wxWidgets.git] / src / mac / timer.cpp
index debf409696d5561a77b8c80641c114dae41320ba..2355b8eaceba62af11fa3374cd65982502eebf22 100644 (file)
@@ -92,8 +92,10 @@ bool wxTimer::IsRunning() const
 wxTimer::~wxTimer()
 {
     Stop();
-    delete m_info ;
-    m_info = NULL ;
+    if (m_info != NULL) {
+        delete m_info ;
+        m_info = NULL ;
+    }
     int index = gTimersInProcess.Index( this ) ;
     if ( index != wxNOT_FOUND )
         gTimersInProcess.RemoveAt( index ) ;