diff --git a/src/Project.cpp b/src/Project.cpp index 5a4162592..a3564f73a 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -2416,8 +2416,10 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event) &mViewInfo); Destroy(); + mRuler = nullptr; mIsBeingDeleted = true; + } void AudacityProject::OnOpenAudioFile(wxCommandEvent & event)