remember to disconnect the _notify object when an AU GUI is destroyed
git-svn-id: svn://localhost/ardour2/branches/3.0@12545 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dcd6dbf14b
commit
c1f46b15d2
|
@ -195,11 +195,13 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
|
|||
|
||||
AUPluginUI::~AUPluginUI ()
|
||||
{
|
||||
if (_notify) {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:_notify];
|
||||
}
|
||||
|
||||
if (cocoa_parent) {
|
||||
NSWindow* win = get_nswindow();
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:_notify];
|
||||
[win removeChildWindow:cocoa_parent];
|
||||
|
||||
}
|
||||
|
||||
#ifdef WITH_CARBON
|
||||
|
|
Loading…
Reference in New Issue