X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d4957f2401a8814f90cda21ef945d99bc74596e..c096ba5ea1c7536e00d8eb6bcad3f0a4a6edb13e:/include/wx/dynload.h diff --git a/include/wx/dynload.h b/include/wx/dynload.h index 8f119b49bb..6223cc385b 100644 --- a/include/wx/dynload.h +++ b/include/wx/dynload.h @@ -121,12 +121,12 @@ public: // Instance methods. - wxPluginManager() : m_entry(NULL) {}; + wxPluginManager() : m_entry(NULL) {} wxPluginManager(const wxString &libname, int flags = wxDL_DEFAULT) { Load(libname, flags); } - ~wxPluginManager() { Unload(); } + ~wxPluginManager() { if ( IsLoaded() ) Unload(); } bool Load(const wxString &libname, int flags = wxDL_DEFAULT); void Unload();