]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/timerunx.cpp
better Sun CC fix: put the function in anonymous namespace instead of making it global
[wxWidgets.git] / src / unix / timerunx.cpp
index 12dc0bdf27407a5b9897ce24f5d78fed57d88bab..c7734b423572fe0aa72c5b023335eb5be01019b8 100644 (file)
@@ -159,6 +159,11 @@ void wxTimerScheduler::NotifyExpired()
         wxUnixTimerImpl * const timer = s->m_timer;
         if ( timer->IsOneShot() )
         {
+            // the timer needs to be stopped but don't call its Stop() from
+            // here as it would attempt to remove the timer from our list and
+            // we had already done it, so we just need to reset its state
+            timer->MarkStopped();
+
             // don't need it any more
             delete s;
         }