From f01400359335af6c70297b00367e6fc43e8c97a4 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Sun, 2 Feb 2020 19:42:54 +0100 Subject: [PATCH] minor FFT leak --- lib/Numerical/GslFFT.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Numerical/GslFFT.cpp b/lib/Numerical/GslFFT.cpp index 7ba1f4b..e0e3f4e 100644 --- a/lib/Numerical/GslFFT.cpp +++ b/lib/Numerical/GslFFT.cpp @@ -43,6 +43,7 @@ void GslFFT::resize(const Index size) { if (size_ != size) { + clear(); size_ = size; wavetable_ = gsl_fft_complex_wavetable_alloc(size_); workspace_ = gsl_fft_complex_workspace_alloc(size_);