mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-16 15:57:52 +01:00
toward bug 584
This commit is contained in:
@@ -1983,8 +1983,13 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
||||
|
||||
// Destroy the TrackPanel early so it's not around once we start
|
||||
// deleting things like tracks and such out from underneath it.
|
||||
mTrackPanel->Destroy();
|
||||
mTrackPanel = NULL; // Make sure this gets set...see HandleResize()
|
||||
// Check validity of mTrackPanel per bug 584 Comment 1.
|
||||
// Deeper fix is in the Import code, but this failsafes against crash.
|
||||
if (mTrackPanel)
|
||||
{
|
||||
mTrackPanel->Destroy();
|
||||
mTrackPanel = NULL; // Make sure this gets set...see HandleResize()
|
||||
}
|
||||
|
||||
// Delete the tool manager before the children since it needs
|
||||
// to save the state of the toolbars.
|
||||
|
||||
Reference in New Issue
Block a user