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_);