1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 22:23:59 +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

@@ -113,6 +113,7 @@ Effect::Effect()
Effect::~Effect()
{
delete mOutputTracks;
if (mWarper != NULL)
{
delete mWarper;
@@ -1364,7 +1365,7 @@ void Effect::CopyInputTracks(int trackType)
mIMap.Clear();
mOMap.Clear();
mOutputTracks = new TrackList();
mOutputTracks = new TrackList(true);
mOutputTracksType = trackType;
//iterate over tracks of type trackType (All types if Track::All)