X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25466131acbbca2186d01fb852d61f50ba968fb4..51ec29ea5d1d1093bafbae27a8483211a90d9659:/src/palmos/ownerdrw.cpp?ds=sidebyside diff --git a/src/palmos/ownerdrw.cpp b/src/palmos/ownerdrw.cpp index 939e416970..e3e02226c2 100644 --- a/src/palmos/ownerdrw.cpp +++ b/src/palmos/ownerdrw.cpp @@ -25,11 +25,11 @@ #include "wx/utils.h" #include "wx/settings.h" #include "wx/menuitem.h" + #include "wx/module.h" #endif #include "wx/ownerdrw.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;