Don't leak memory for allocated modules

This commit is contained in:
Adriaan de Groot 2017-08-30 07:46:01 -04:00
parent d5dca07e22
commit e26d5ab206

View File

@ -57,7 +57,13 @@ ModuleManager::ModuleManager( const QStringList& paths, QObject* parent )
ModuleManager::~ModuleManager()
{}
{
// The map is populated with Module::fromDescriptor(), which allocates on the heap.
for( auto moduleptr : m_loadedModulesByInstanceKey )
{
delete moduleptr;
}
}
void