X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..4b4d23c77e1971e8eb2df9bbd7e4ef817e8f447e:/include/wx/dynload.h diff --git a/include/wx/dynload.h b/include/wx/dynload.h index ae8e8e5e34..2c80bede4f 100644 --- a/include/wx/dynload.h +++ b/include/wx/dynload.h @@ -93,8 +93,8 @@ private: size_t m_objcount; // ..and (pluggable) object instantiations. wxModuleList m_wxmodules; // any wxModules that we initialised. - void UpdateClassInfo(); // Update the wxClassInfo table - void RestoreClassInfo(); // Restore the original wxClassInfo state. + void UpdateClasses(); // Update ms_classes + void RestoreClasses(); // Removes this library from ms_classes void RegisterModules(); // Init any wxModules in the lib. void UnregisterModules(); // Cleanup any wxModules we installed. @@ -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();