mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 22:23:59 +01:00
Fix memleak when using text interface
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user