diff --git a/src/StretcherImpl.cpp b/src/StretcherImpl.cpp index efdfc11..7f74751 100644 --- a/src/StretcherImpl.cpp +++ b/src/StretcherImpl.cpp @@ -1057,7 +1057,7 @@ RubberBandStretcher::Impl::study(const float *const *input, size_t samples, bool } } - if (m_channels > 1) delete[] mdalloc; + if (m_channels > 1 || final) delete[] mdalloc; } vector