aboutsummaryrefslogtreecommitdiff
path: root/fft.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-06-14 12:26:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-06-14 12:26:44 +0000
commitff7f99d8a377bb2062e057195ab2d914b9498e7c (patch)
tree56175f00a144708d156a341b12a9207bf90079af /fft.c
parent842899267b64539c3071a26842ace597ad063d91 (diff)
add fft free
Diffstat (limited to 'fft.c')
-rw-r--r--fft.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fft.c b/fft.c
index 5d02291..a13eaad 100644
--- a/fft.c
+++ b/fft.c
@@ -92,3 +92,12 @@ dofft(struct fft *p, int16_t *data, double *left, double *right, int n, float sc
return 0;
}
+
+void
+del_fft(struct fft *fft)
+{
+ fftw_free(fft->in);
+ fftw_free(fft->out);
+ free(fft->window);
+ free(fft);
+}