mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 00:30:07 +02:00
Fix memleak when using text interface
This commit is contained in:
parent
cd315f7f1e
commit
0a37ca8106
@ -2271,6 +2271,30 @@ bool VSTEffect::CloseUI()
|
||||
|
||||
RemoveHandler();
|
||||
|
||||
if (mNames)
|
||||
{
|
||||
delete [] mNames;
|
||||
mNames = NULL;
|
||||
}
|
||||
|
||||
if (mSliders)
|
||||
{
|
||||
delete [] mSliders;
|
||||
mSliders = NULL;
|
||||
}
|
||||
|
||||
if (mDisplays)
|
||||
{
|
||||
delete [] mDisplays;
|
||||
mDisplays = NULL;
|
||||
}
|
||||
|
||||
if (mLabels)
|
||||
{
|
||||
delete [] mLabels;
|
||||
mLabels = NULL;
|
||||
}
|
||||
|
||||
mUIHost = NULL;
|
||||
mParent = NULL;
|
||||
mDialog = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user