1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-09 22:53:55 +01:00

Module interfaces managed by smart pointers

This commit is contained in:
Paul Licameli
2016-03-31 10:33:28 -04:00
parent 54402bf00d
commit e0476b5e71
9 changed files with 67 additions and 43 deletions

View File

@@ -198,7 +198,8 @@ static const wxChar *kExcludedNames[] =
DECLARE_MODULE_ENTRY(AudacityModule)
{
// Create and register the importer
return new BuiltinEffectsModule(moduleManager, path);
// Trust the module manager not to leak this
return safenew BuiltinEffectsModule(moduleManager, path);
}
// ============================================================================