mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 15:05:38 +01:00
Remove some naked new amd delete in: Built-in Effects
This commit is contained in:
@@ -28,7 +28,7 @@ effect that uses SoundTouch to do its processing (ChangeTempo
|
||||
bool EffectSoundTouch::ProcessLabelTrack(Track *track)
|
||||
{
|
||||
// SetTimeWarper(new RegionTimeWarper(mCurT0, mCurT1,
|
||||
// new LinearTimeWarper(mCurT0, mCurT0,
|
||||
// std::make_unique<LinearTimeWarper>(mCurT0, mCurT0,
|
||||
// mCurT1, mCurT0 + (mCurT1-mCurT0)*mFactor)));
|
||||
LabelTrack *lt = (LabelTrack*)track;
|
||||
if (lt == NULL) return false;
|
||||
@@ -162,8 +162,7 @@ bool EffectSoundTouch::Process()
|
||||
if (bGoodResult)
|
||||
ReplaceProcessedTracks(bGoodResult);
|
||||
|
||||
delete mSoundTouch;
|
||||
mSoundTouch = NULL;
|
||||
mSoundTouch.reset();
|
||||
|
||||
// mT0 = mCurT0;
|
||||
// mT1 = mCurT0 + m_maxNewLength; // Update selection.
|
||||
|
||||
Reference in New Issue
Block a user