]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed double deletion (patch #945491)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 6 Jun 2004 15:09:49 +0000 (15:09 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 6 Jun 2004 15:09:49 +0000 (15:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynload.cpp

index ae3ab34b5021857feddb7aaacd6c89ddd1414abb..ac6aa3703061abd6693d0beed51038ce5cf6db7c 100644 (file)
@@ -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();
 }