From dd7230ab0b313183d746724cd6eb4f61e08e7adb Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Mar 2006 11:25:26 +0000 Subject: [PATCH] Fixed a crash when deleting the last timer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index bffbfa37c0..a67016706f 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -190,7 +190,11 @@ void wxTimerScheduler::NotifyTimers() QueueTimer(desc, now + desc->timer->GetInterval()); } else + { desc = m_timers; + if (!desc) + break; + } } } } -- 2.45.2