1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02:00

Prefer Destroy() to deleting a window

This commit is contained in:
Paul Licameli 2016-08-10 01:40:31 -04:00
parent a27d0aca2b
commit 384fc4a4ae

View File

@ -2929,7 +2929,7 @@ int EffectUIHost::ShowModal()
sz->Replace(mCloseBtn, apply);
sz->Replace(mApplyBtn, mCloseBtn);
sz->Layout();
delete mApplyBtn;
mApplyBtn->Destroy();
mApplyBtn = apply;
mApplyBtn->SetDefault();
mApplyBtn->SetLabel(wxGetStockLabel(wxID_OK, 0));