mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-11 16:50:25 +02:00
ModuleManager::mLibs never becomes non-empty. Remove it.
This commit is contained in:
@@ -485,13 +485,6 @@ void ModuleInterfaceDeleter::operator() (ModuleInterface *pInterface) const
|
||||
if (pInterface)
|
||||
{
|
||||
pInterface->Terminate();
|
||||
|
||||
auto &libs = ModuleManager::Get().mLibs;
|
||||
|
||||
auto iter = libs.find(pInterface);
|
||||
if (iter != libs.end())
|
||||
libs.erase(iter); // This causes unloading in ~wxDynamicLibrary
|
||||
|
||||
std::unique_ptr < ModuleInterface > { pInterface }; // DELETE it
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user