From 8c90e3a5e1a6274fc63ad77106443a9a7c75db7d Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 16 Oct 2014 21:36:39 +0100 Subject: [PATCH] Fix small memory leak --- src/StretcherImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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