X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b326934c03cf600cbf9763092a0ecbb5b73dd537..17d98558b35b75e3cad68d96841b4fa5a0c7e6ee:/src/common/utilscmn.cpp?ds=inline diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index c77972ce10..53791d386f 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -355,8 +355,7 @@ void wxPlatform::AddPlatform(int platform) void wxPlatform::ClearPlatforms() { - delete sm_customPlatforms; - sm_customPlatforms = NULL; + wxDELETE(sm_customPlatforms); } /// Function for testing current platform