diff options
Diffstat (limited to 'src/mtx_rowrfft.c')
-rw-r--r-- | src/mtx_rowrfft.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mtx_rowrfft.c b/src/mtx_rowrfft.c index daa1f3f..7745f55 100644 --- a/src/mtx_rowrfft.c +++ b/src/mtx_rowrfft.c @@ -36,10 +36,14 @@ struct _MTXRowrfft_ static void deleteMTXRowrfft (MTXRowrfft *x) { - free (x->f_re); - free (x->f_im); - free (x->list_re); - free (x->list_im); + if (x->f_re) + free (x->f_re); + if (x->f_im) + free (x->f_im); + if (x->list_re) + free (x->list_re); + if (x->list_im) + free (x->list_im); } static void *newMTXRowrfft (t_symbol *s, int argc, t_atom *argv) |