]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynload.h
drawing the border based on the native control's border, as things like calctrl may...
[wxWidgets.git] / include / wx / dynload.h
index c5f3585ec6b65769ead955362593da6d09b22df8..2c80bede4f48d4eb83ddd9975733a43e3a876534 100644 (file)
@@ -7,7 +7,7 @@
 // Created:      03/12/01
 // RCS-ID:       $Id$
 // Copyright:    (c) 2001 Ron Lee <ron@debian.org>
-// Licence:      wxWidgets licence
+// Licence:      wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_DYNAMICLOADER_H__
@@ -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();