mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 09:00:52 +02:00
ModuleManager::mLibs never becomes non-empty. Remove it.
This commit is contained in:
parent
bd6fb75886
commit
dcdddcb7f2
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -120,10 +120,6 @@ private:
|
||||
// ComponentInterface objects for each path:
|
||||
ModuleMap mDynModules;
|
||||
|
||||
// Dynamically loaded libraries, each one a factory that makes one of the
|
||||
// (non-built-in) providers:
|
||||
LibraryMap mLibs;
|
||||
|
||||
// Other libraries that receive notifications of events described by
|
||||
// ModuleDispatchTypes:
|
||||
std::vector<std::unique_ptr<Module>> mModules;
|
||||
|
Loading…
x
Reference in New Issue
Block a user