1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Do not alloc the auto recovery dialog on the stack.

Was dumping the allocated window structure and noticed that this
fella never really goes away.  Could be the deleting was still
pending, but it doesn't hurt to alloc/delete it instead.
This commit is contained in:
Leland Lucius 2015-08-14 16:02:16 -05:00
parent 1bf561819e
commit 0e7a063ced

View File

@ -248,8 +248,9 @@ bool ShowAutoRecoveryDialogIfNeeded(AudacityProject** pproj,
// This must be done before "dlg" is declared.
wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_UI);
AutoRecoveryDialog dlg(*pproj);
int ret = dlg.ShowModal();
AutoRecoveryDialog *dlg = new AutoRecoveryDialog(NULL); //*pproj);
int ret = dlg->ShowModal();
delete dlg;
switch (ret)
{