mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
Bug822 - memory leak and orphans when paste eliminates cutlines
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user