]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/timer.cpp
Don't hardcode wxPreviewControlBar size in print preview code.
[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; }
 public:
     wxTimerModule() {}
     bool OnInit() { return true; }
-    void OnExit() { delete gs_scheduler; gs_scheduler = NULL; }
+    void OnExit() { wxDELETE(gs_scheduler); }
 };
 
 IMPLEMENT_DYNAMIC_CLASS(wxTimerModule, wxModule)
 };
 
 IMPLEMENT_DYNAMIC_CLASS(wxTimerModule, wxModule)