From 1be9536aaaa160cc4d8e8acfc26d5c39ca2f57be Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 11 Jun 2003 14:15:36 +0000 Subject: [PATCH] Allow for multiple CHM controllers in app (don't leak dynamic libs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/helpchm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/msw/helpchm.cpp b/src/msw/helpchm.cpp index 2871a9f782..cf90de12e9 100644 --- a/src/msw/helpchm.cpp +++ b/src/msw/helpchm.cpp @@ -80,9 +80,8 @@ static void UnloadHtmlHelpLibrary() { if ( gs_htmlHelp ) { - wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") ); - - gs_htmlHelp = 0; + if (wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") )) + gs_htmlHelp = 0; } } -- 2.50.0