1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 06:03:49 +01:00

a null check

This commit is contained in:
Paul Licameli
2016-12-22 09:38:11 -05:00
parent d9be2be137
commit 37e7b5704a

View File

@@ -680,7 +680,8 @@ bool Effect::HideUI()
bool Effect::CloseUI()
{
mUIParent->RemoveEventHandler(this);
if (mUIParent)
mUIParent->RemoveEventHandler(this);
mUIParent = NULL;
mUIDialog = NULL;