mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Don't leak memory for allocated modules
This commit is contained in:
parent
d5dca07e22
commit
e26d5ab206
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue