From: Václav Slavík Date: Sun, 6 Jun 2004 15:09:49 +0000 (+0000) Subject: fixed double deletion (patch #945491) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5385fa5b024c85439cd2e8271cfb2591e36439be?ds=inline fixed double deletion (patch #945491) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index ae3ab34b50..ac6aa37030 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -222,7 +222,8 @@ void wxPluginLibrary::UnregisterModules() for ( it = m_wxmodules.begin(); it != m_wxmodules.end(); ++it ) wxModule::UnregisterModule( *it ); - WX_CLEAR_LIST(wxModuleList, m_wxmodules); + // NB: content of the list was deleted by UnregisterModule calls above: + m_wxmodules.clear(); }