1
0
Fork 0

Resolve warning: Double Delete

This commit is contained in:
Scott Giese 2020-08-29 10:47:12 -05:00
parent e079f0d1eb
commit 5a29e7aade

View file

@ -81,11 +81,12 @@ PlugInManager::unload( PlugInInfo &plugIn )
{
plugIn.m_interface->uninitialize( &TestFactoryRegistry::getRegistry() );
delete plugIn.m_manager;
plugIn.m_manager = nullptr;
}
catch (...)
{
delete plugIn.m_manager;
plugIn.m_manager = NULL;
plugIn.m_manager = nullptr;
throw;
}
}