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:
parent
9e0a0300f6
commit
d37a730f56
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user