fix linker error bug with fftw3 and -DFFT_SINGLE

This commit is contained in:
Axel Kohlmeyer 2018-03-21 12:13:09 -04:00
parent 8e5d3802ad
commit e66c71e1ca
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ int main(int argc, char **argv)
#ifdef FFT_FFTW3
// tell fftw3 to delete its global memory pool
// and thus avoid bogus valgrind memory leak reports
#ifdef FFT_SINGLE
fftwf_cleanup();
#else
fftw_cleanup();
#endif
#endif
}