X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dca2d56ff5dd95e7f9a0848f456adfd86c753e49..b9ca40a921b73bb370dca833cf1c2818477b1775:/src/common/mimecmn.cpp diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 38a97a155b..7ee3ef0dff 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -55,9 +55,9 @@ // implementation classes: #if defined(__WXMSW__) #include "wx/msw/mimetype.h" -#elif defined (__WXMAC__) +#elif defined(__WXMAC__) #include "wx/mac/mimetype.h" -#elif defined (__WXPM__) +#elif defined(__WXPM__) #include "wx/os2/mimetype.h" #else // Unix #include "wx/unix/mimetype.h" @@ -414,7 +414,8 @@ wxMimeTypesManager::wxMimeTypesManager() wxMimeTypesManager::~wxMimeTypesManager() { - delete m_impl; + if ( m_impl ) + delete m_impl; } wxFileType *