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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user