From: George Tasker Date: Wed, 31 Jan 2001 14:50:02 +0000 (+0000) Subject: Destructor for wxMimeTypesManager was deleting its member m_impl without checking... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8a16a98e597084567d18656744f684d1f966b2e3 Destructor for wxMimeTypesManager was deleting its member m_impl without checking if it was already NULL or not. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index 38a97a155b..80457d0b61 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -414,7 +414,8 @@ wxMimeTypesManager::wxMimeTypesManager() wxMimeTypesManager::~wxMimeTypesManager() { - delete m_impl; + if ( m_impl ) + delete m_impl; } wxFileType *