1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +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

@@ -49,7 +49,8 @@
DECLARE_MODULE_ENTRY(AudacityModule)
{
// Create and register the importer
return new AudioUnitEffectsModule(moduleManager, path);
// Trust the module manager not to leak this
return safenew AudioUnitEffectsModule(moduleManager, path);
}
// ============================================================================