X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d4957f2401a8814f90cda21ef945d99bc74596e..bb0926cc0097e5b15c0b93dc01c25cb827b96c19:/include/wx/dynload.h diff --git a/include/wx/dynload.h b/include/wx/dynload.h index 8f119b49bb..2c80bede4f 100644 --- a/include/wx/dynload.h +++ b/include/wx/dynload.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();