X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ac34ac9156ea40ad76025aedb6eef86b2a813cc..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/common/mimecmn.cpp diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 332404b839..f159809a84 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -48,7 +48,7 @@ // implementation classes: #if defined(__WXMSW__) #include "wx/msw/mimetype.h" -#elif ( defined(__WXMAC__) && wxOSX_USE_CARBON ) +#elif ( defined(__WXMAC__) ) #include "wx/osx/mimetype.h" #elif defined(__WXPM__) || defined (__EMX__) #include "wx/os2/mimetype.h" @@ -749,8 +749,7 @@ public: if ( gs_mimeTypesManager.m_impl != NULL ) { - delete gs_mimeTypesManager.m_impl; - gs_mimeTypesManager.m_impl = NULL; + wxDELETE(gs_mimeTypesManager.m_impl); gs_mimeTypesManager.m_fallbacks.Clear(); } }