1
0
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:
Paul Licameli
2021-05-13 16:26:27 -04:00
parent bd6fb75886
commit dcdddcb7f2
2 changed files with 0 additions and 11 deletions

View File

@@ -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
}
}