mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +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();
|
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;
|
mUIHost = NULL;
|
||||||
mParent = NULL;
|
mParent = NULL;
|
||||||
mDialog = NULL;
|
mDialog = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user