mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +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),
|
||||
NULL,
|
||||
this);
|
||||
|
||||
// Do this before destroying the overlays
|
||||
delete mRuler;
|
||||
mRuler = nullptr;
|
||||
}
|
||||
|
||||
AudioIOStartStreamOptions AudacityProject::GetDefaultPlayOptions()
|
||||
@ -2420,8 +2416,10 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
||||
&mViewInfo);
|
||||
|
||||
Destroy();
|
||||
mRuler = nullptr;
|
||||
|
||||
mIsBeingDeleted = true;
|
||||
|
||||
}
|
||||
|
||||
void AudacityProject::OnOpenAudioFile(wxCommandEvent & event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user