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