X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6c65e881e42bfed000fbcac31ac8c1db2729152..4178000933f0618d2cc9dc2f80dfed91b0c61464:/src/common/mimecmn.cpp diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 278d3bc4af..80457d0b61 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -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 *