X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e5f0419b0d8437e20b50a0bf40a782dc1795d512..a811affe70feeb727bf7fbd2748a48ded6ec3b9b:/src/mac/timer.cpp diff --git a/src/mac/timer.cpp b/src/mac/timer.cpp index debf409696..2355b8eace 100644 --- a/src/mac/timer.cpp +++ b/src/mac/timer.cpp @@ -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 ) ;