1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00

Fix a memory leak I introduced in Truncate Silence ... sorry

This commit is contained in:
Paul Licameli 2016-08-10 00:59:09 -04:00
parent 7c1511c604
commit 4045d96a58

View File

@ -660,9 +660,6 @@ bool EffectTruncSilence::Analyze(RegionList& silenceList,
}
// Record the silent region
Region *r = new Region;
r->start = wt->LongSamplesToTime(*index + i - *silentFrame);
r->end = wt->LongSamplesToTime(*index + i);
trackSilences.push_back(Region(
wt->LongSamplesToTime(*index + i - *silentFrame),
wt->LongSamplesToTime(*index + i)