Fix potential memleak
This commit is contained in:
parent
9708669ac7
commit
551a6ff9ba
@ -145,6 +145,10 @@ ModuleManager::doInit()
|
|||||||
{
|
{
|
||||||
m_availableModules.insert( moduleInfo->name(), moduleInfo );
|
m_availableModules.insert( moduleInfo->name(), moduleInfo );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
delete moduleInfo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user