]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/timer.cpp
Only use wxFORCE_LINK_MODULE() in mediaplayer sample in static build.
[wxWidgets.git] / src / generic / timer.cpp
index cd39aaac349ce5b15790622b2a50ea78e786180a..729daa50117ce694c1f1d0608b112862958374af 100644 (file)
@@ -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)