fixed double deletion (patch #945491)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-06 15:09:49 +00:00
parent e5e2612ab7
commit 5385fa5b02

View File

@@ -222,7 +222,8 @@ void wxPluginLibrary::UnregisterModules()
for ( it = m_wxmodules.begin(); it != m_wxmodules.end(); ++it ) for ( it = m_wxmodules.begin(); it != m_wxmodules.end(); ++it )
wxModule::UnregisterModule( *it ); wxModule::UnregisterModule( *it );
WX_CLEAR_LIST(wxModuleList, m_wxmodules); // NB: content of the list was deleted by UnregisterModule calls above:
m_wxmodules.clear();
} }