]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
made wxLocale::GetSystemLanguage and wxLocale::AddLanguage static;
[wxWidgets.git] / src / common / mimecmn.cpp
index 278d3bc4afce2f17b63a18c3285f6da854569a4c..80457d0b612606c9f4eb8c5e7dfa39bb1ad1baf1 100644 (file)
@@ -207,7 +207,8 @@ wxFileType::wxFileType()
 
 wxFileType::~wxFileType()
 {
-    delete m_impl;
+    if ( m_impl )
+        delete m_impl;
 }
 
 bool wxFileType::GetExtensions(wxArrayString& extensions)
@@ -413,7 +414,8 @@ wxMimeTypesManager::wxMimeTypesManager()
 
 wxMimeTypesManager::~wxMimeTypesManager()
 {
-    delete m_impl;
+    if ( m_impl )
+        delete m_impl;
 }
 
 wxFileType *