[Plugin Loader] Unregister loader callback
This callback should be unregistered when plugin loading completes, otherwise we could end up processing bundles loaded by external stuff, like Audio Units loading for MIDI playback. Signed-off-by: Christopher Snowhill <kode54@gmail.com>lastfm
parent
9839f51ee1
commit
a32a8718d7
|
@ -196,6 +196,9 @@ static PluginController *sharedPluginController = nil;
|
|||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bundleDidLoad:) name:NSBundleDidLoadNotification object:nil];
|
||||
|
||||
[self loadPlugins];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSBundleDidLoadNotification object:nil];
|
||||
|
||||
[self printPluginInfo];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue