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

More of bug 1338: avoid Mac hang with modal invocation of plugin...

... This required a separate set of changes and testing for the VST version of
SPAN, another for the AU version.

see commit c8e570797f
This commit is contained in:
Paul Licameli
2017-07-24 16:49:15 -04:00
parent 6ce85bee9a
commit 54afdc762f
7 changed files with 22 additions and 1 deletions

View File

@@ -107,12 +107,18 @@ AUControl::AUControl()
}
AUControl::~AUControl()
{
Close();
}
void AUControl::Close()
{
#if !defined(_LP64)
if (mInstance)
{
AudioComponentInstanceDispose(mInstance);
mInstance = nullptr;
}
#endif
@@ -125,11 +131,13 @@ AUControl::~AUControl()
object:mView];
[mView release];
mView = nullptr;
}
if (mAUView)
{
[mAUView release];
mAUView = nullptr;
}
}