mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-20 14:47:49 +02:00
Fix a memory leak I introduced in Truncate Silence ... sorry
This commit is contained in:
parent
7c1511c604
commit
4045d96a58
@ -660,9 +660,6 @@ bool EffectTruncSilence::Analyze(RegionList& silenceList,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Record the silent region
|
// 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(
|
trackSilences.push_back(Region(
|
||||||
wt->LongSamplesToTime(*index + i - *silentFrame),
|
wt->LongSamplesToTime(*index + i - *silentFrame),
|
||||||
wt->LongSamplesToTime(*index + i)
|
wt->LongSamplesToTime(*index + i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user