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

Fix for bug #857

Even though this is only a P2, I felt it would be
quite bothersome for the users and might cause some
confusion.

The problem was the the wxLocale was being deleted
before all usage of it was complete.  The fix was
to explicitly delete the plugin and module managers.
This commit is contained in:
lllucius@gmail.com
2015-02-12 02:30:30 +00:00
parent c88c1738bb
commit e73b7e70a3
5 changed files with 39 additions and 10 deletions

View File

@@ -178,7 +178,7 @@ void * Module::GetSymbol(wxString name)
// ============================================================================
// The one and only ModuleManager
ModuleManager ModuleManager::mInstance;
ModuleManager *ModuleManager::mInstance = NULL;
// Provide builtin modules a means to identify themselves
static wxArrayPtrVoid *pBuiltinModuleList = NULL;
@@ -358,7 +358,21 @@ int ModuleManager::Dispatch(ModuleDispatchTypes type)
// ============================================================================
ModuleManager & ModuleManager::Get()
{
return mInstance;
if (!mInstance)
{
mInstance = new ModuleManager();
}
return *mInstance;
}
void ModuleManager::Destroy()
{
if (mInstance)
{
delete mInstance;
mInstance = NULL;
}
}
bool ModuleManager::DiscoverProviders()