Fixed memory leak in inverse FFT