mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
Fix crashes (sometimes) when closing a project, due to overlays
This commit is contained in:
commit
df3e71ee8f
@ -1124,10 +1124,6 @@ AudacityProject::~AudacityProject()
|
|||||||
wxCommandEventHandler(AudacityProject::OnCapture),
|
wxCommandEventHandler(AudacityProject::OnCapture),
|
||||||
NULL,
|
NULL,
|
||||||
this);
|
this);
|
||||||
|
|
||||||
// Do this before destroying the overlays
|
|
||||||
delete mRuler;
|
|
||||||
mRuler = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AudioIOStartStreamOptions AudacityProject::GetDefaultPlayOptions()
|
AudioIOStartStreamOptions AudacityProject::GetDefaultPlayOptions()
|
||||||
@ -2420,8 +2416,10 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
|||||||
&mViewInfo);
|
&mViewInfo);
|
||||||
|
|
||||||
Destroy();
|
Destroy();
|
||||||
|
mRuler = nullptr;
|
||||||
|
|
||||||
mIsBeingDeleted = true;
|
mIsBeingDeleted = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityProject::OnOpenAudioFile(wxCommandEvent & event)
|
void AudacityProject::OnOpenAudioFile(wxCommandEvent & event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user