X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..4b4d23c77e1971e8eb2df9bbd7e4ef817e8f447e:/include/wx/dynload.h diff --git a/include/wx/dynload.h b/include/wx/dynload.h index c5f3585ec6..2c80bede4f 100644 --- a/include/wx/dynload.h +++ b/include/wx/dynload.h @@ -7,7 +7,7 @@ // Created: 03/12/01 // RCS-ID: $Id$ // Copyright: (c) 2001 Ron Lee -// 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();