1
0
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:
Paul Licameli 2016-05-12 16:46:19 -04:00
commit df3e71ee8f

View File

@ -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)