]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow for multiple CHM controllers in app (don't leak dynamic libs)
authorJulian Smart <julian@anthemion.co.uk>
Wed, 11 Jun 2003 14:15:36 +0000 (14:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 11 Jun 2003 14:15:36 +0000 (14:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/helpchm.cpp

index 2871a9f78265dbdcdf7d598f4d6d64c7c7e3fe13..cf90de12e9d5d94d44e3e58690e60cb25ca8dc91 100644 (file)
@@ -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;
     }
 }