Resolve warning: Double Delete
This commit is contained in:
parent
e079f0d1eb
commit
5a29e7aade
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue