1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Bug822 - memory leak and orphans when paste eliminates cutlines

This commit is contained in:
Paul-Licameli 2015-04-06 23:23:14 -04:00
parent 9e0a0300f6
commit d37a730f56

View File

@ -734,6 +734,10 @@ bool WaveTrack::ClearAndPaste(double t0, // Start of time to clear
}
}
// Delete cutlines that fell outside of resulting clips
for (int ii = cuts.GetCount(); ii--;)
delete cuts[ii];
// If we created a default time warper, we need to delete it
if (effectWarper == NULL)
delete warper;