]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/timer.cpp
Added log.h inclusion
[wxWidgets.git] / src / mac / carbon / timer.cpp
index debf409696d5561a77b8c80641c114dae41320ba..2355b8eaceba62af11fa3374cd65982502eebf22 100644 (file)
@@ -92,8 +92,10 @@ bool wxTimer::IsRunning() const
 wxTimer::~wxTimer()
 {
     Stop();
 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 ) ;  
     int index = gTimersInProcess.Index( this ) ;
     if ( index != wxNOT_FOUND )
         gTimersInProcess.RemoveAt( index ) ;