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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user