]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynload.h
Source cleaning: whitespaces, tabs, -1/wxNOT_FOUND, TRUE/true, FALSE/false.
[wxWidgets.git] / include / wx / dynload.h
index 8f119b49bbfb56660bdf21b103f0090bfdf24b4a..2c80bede4f48d4eb83ddd9975733a43e3a876534 100644 (file)
@@ -126,7 +126,7 @@ public:
     {
         Load(libname, flags);
     }
-    ~wxPluginManager() { Unload(); }
+    ~wxPluginManager() { if ( IsLoaded() ) Unload(); }
 
     bool   Load(const wxString &libname, int flags = wxDL_DEFAULT);
     void   Unload();