]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a crash when deleting the last timer
authorJulian Smart <julian@anthemion.co.uk>
Tue, 21 Mar 2006 11:25:26 +0000 (11:25 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 21 Mar 2006 11:25:26 +0000 (11:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/timer.cpp

index bffbfa37c085847b5a16c800ce22fac389de134f..a67016706f98fab983e8ea3d5baf3e8ef36ac4e7 100644 (file)
@@ -190,7 +190,11 @@ void wxTimerScheduler::NotifyTimers()
                         QueueTimer(desc, now + desc->timer->GetInterval());
                 }
                 else
+                {
                     desc = m_timers;
+                    if (!desc)
+                        break;
+                }
             }
         }
     }