Mercurial > hg > batch-feature-extraction-tool
diff Source/FFTW.h @ 3:005e311b5e62
Fixed memory leak. :) Need to fix Debug FFTW now though.
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Fri, 10 Jul 2015 00:33:15 +0100 |
parents | e86e9c111b29 |
children | 345acbd06029 |
line wrap: on
line diff
--- a/Source/FFTW.h Thu Jul 09 21:45:55 2015 +0100 +++ b/Source/FFTW.h Fri Jul 10 00:33:15 2015 +0100 @@ -45,7 +45,7 @@ dim.n = fftLength; dim.is = 1; dim.os = 1; - m_plan = fftwf_plan_guru_split_dft_r2c( 1, &dim, 0, NULL, tempInput, tempReal, tempImag, FFTW_ESTIMATE ); + m_plan = fftwf_plan_guru_split_dft_r2c( 1, &dim, 0, nullptr, tempInput, tempReal, tempImag, FFTW_ESTIMATE ); delete[] tempInput; tempInput = nullptr; delete[] tempReal; @@ -57,7 +57,7 @@ ~FFTW() { - if(m_plan != NULL) + if(m_plan != nullptr) { fftwf_destroy_plan( m_plan ); }