From 0e7a063cedc14ca4befcf9448018db919dce61a2 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Fri, 14 Aug 2015 16:02:16 -0500 Subject: [PATCH] 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. --- src/AutoRecovery.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AutoRecovery.cpp b/src/AutoRecovery.cpp index dd97e0252..8a68ecfaf 100644 --- a/src/AutoRecovery.cpp +++ b/src/AutoRecovery.cpp @@ -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) {