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

@@ -56,7 +56,8 @@ Functions that find and load all LV2 plugins on the system.
DECLARE_MODULE_ENTRY(AudacityModule)
{
// Create and register the importer
return new LV2EffectsModule(moduleManager, path);
// Trust the module manager not to leak this
return safenew LV2EffectsModule(moduleManager, path);
}
// ============================================================================