1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

toward bug 584

This commit is contained in:
v.audacity 2012-10-05 23:00:56 +00:00
parent 4719a70809
commit b53669ad3d
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -128,6 +128,7 @@ public:
if (mProgress != NULL)
{
delete mProgress;
mProgress = NULL;
}
}