1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 22:45:29 +01:00

Bug834, part 2 - Memory leak and orphans after cancelling any generator

New project.  New track.  Generate sound -- do not cancel.  Select all,
generate sound again -- this time, do cancel the progress dialog.

Undo, so you see one, empty track again.  Save.  Close.  Reopen.

The cause of these orphans is different from the first case.  The previous
commit is necessary but not sufficient to fix this.
This commit is contained in:
Paul-Licameli
2015-04-08 11:33:46 -04:00
parent a562f2c922
commit 14a36dad46
3 changed files with 8 additions and 4 deletions

View File

@@ -700,8 +700,9 @@ Track *SyncLockedTracksIterator::Last(bool skiplinked)
DEFINE_EVENT_TYPE(EVT_TRACKLIST_RESIZED);
DEFINE_EVENT_TYPE(EVT_TRACKLIST_UPDATED);
TrackList::TrackList()
TrackList::TrackList(bool destructorDeletesTracks)
: wxEvtHandler()
, mDestructorDeletesTracks(destructorDeletesTracks)
{
head = NULL;
tail = NULL;
@@ -709,7 +710,7 @@ TrackList::TrackList()
TrackList::~TrackList()
{
Clear();
Clear(mDestructorDeletesTracks);
}
void TrackList::RecalcPositions(const TrackListNode *node)