mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 23:59:37 +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:
parent
1bf561819e
commit
0e7a063ced
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user