1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

minor FFT leak

This commit is contained in:
Antonin Portelli 2020-02-02 19:42:54 +01:00
parent c37e6e1bfd
commit f014003593

View File

@ -43,6 +43,7 @@ void GslFFT::resize(const Index size)
{ {
if (size_ != size) if (size_ != size)
{ {
clear();
size_ = size; size_ = size;
wavetable_ = gsl_fft_complex_wavetable_alloc(size_); wavetable_ = gsl_fft_complex_wavetable_alloc(size_);
workspace_ = gsl_fft_complex_workspace_alloc(size_); workspace_ = gsl_fft_complex_workspace_alloc(size_);