]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
another attempt to fix wxMotif build
[wxWidgets.git] / src / common / mimecmn.cpp
index 38a97a155bf3da2817fea5afa0d6d2def3fa1051..7ee3ef0dff6ceffe99262112ad89e0b8bb5deb81 100644 (file)
@@ -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 *