X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/651548666aa3bb4129c3297c71db1051ed76a6bb..e562dfb1a0dbabd0a93d50495de52e827efc59a9:/src/generic/timer.cpp diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index cd39aaac34..729daa5011 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -273,7 +273,7 @@ DECLARE_DYNAMIC_CLASS(wxTimerModule) public: wxTimerModule() {} bool OnInit() { return true; } - void OnExit() { delete gs_scheduler; gs_scheduler = NULL; } + void OnExit() { wxDELETE(gs_scheduler); } }; IMPLEMENT_DYNAMIC_CLASS(wxTimerModule, wxModule)