X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..3225a4b8b8656f25dac6cb20684a3c2c273cf796:/src/palmos/ownerdrw.cpp diff --git a/src/palmos/ownerdrw.cpp b/src/palmos/ownerdrw.cpp index 414718895a..e3e02226c2 100644 --- a/src/palmos/ownerdrw.cpp +++ b/src/palmos/ownerdrw.cpp @@ -24,12 +24,12 @@ #include "wx/menu.h" #include "wx/utils.h" #include "wx/settings.h" + #include "wx/menuitem.h" + #include "wx/module.h" #endif #include "wx/ownerdrw.h" -#include "wx/menuitem.h" #include "wx/fontutil.h" -#include "wx/module.h" #if wxUSE_OWNER_DRAWN @@ -45,8 +45,7 @@ public: virtual void OnExit() { - delete ms_systemMenuFont; - ms_systemMenuFont = NULL; + wxDELETE(ms_systemMenuFont); } static wxFont* ms_systemMenuFont;