1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 07:40:12 +01:00

Fix 3 uninitialized variable uses

This commit is contained in:
Daniel Winzen
2015-04-30 09:06:37 +02:00
parent 423bc8ac4d
commit 428f5c8391
3 changed files with 8 additions and 3 deletions

View File

@@ -486,13 +486,13 @@ void ModuleManager::UnloadModule(ModuleInterface *module)
{
module->Terminate();
delete module;
if (mLibs.find(module) != mLibs.end())
{
mLibs[module]->Unload();
mLibs.erase(module);
}
delete module; //After terminating and unloading, we can safely delete the module
}
}