wxDLManifestEntry::~wxDLManifestEntry()
{
- UnregisterModules();
- RestoreClassInfo();
-
- wxDllLoader::UnloadLibrary(m_handle);
+ if( m_handle != 0 )
+ {
+ UnregisterModules();
+ RestoreClassInfo();
+ wxDllLoader::UnloadLibrary(m_handle);
+ }
}
bool wxDLManifestEntry::UnrefLib()
}
else
{
- wxCHECK_MSG( !entry->UnrefLib(), 0,
+ wxCHECK_MSG( entry->UnrefLib(), 0,
_T("Currently linked library is, ..not loaded??") );
entry = 0;
}