// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#ifdef __GNUG__
+ #pragma implementation "timer.h"
+#endif
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
wxTimer::~wxTimer()
{
- Stop();
wxTimer::Stop();
+
wxTimerList.DeleteObject(this);
}
wxNode* pNode = wxTimerList.Find((ULONG)nIdTimer);
wxCHECK_MSG(pNode, 0, wxT("bogus timer id in wxTimerProc") );
-
- wxProcessTimer(*(wxTimer *)pNode->Data());
+ if (pNode)
+ wxProcessTimer(*(wxTimer *)pNode->GetData());
return 0;
}