From 5385fa5b024c85439cd2e8271cfb2591e36439be Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 6 Jun 2004 15:09:49 +0000 Subject: [PATCH] fixed double deletion (patch #945491) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dynload.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.50.0