diff options
author | Franz Zotter <fzotter@users.sourceforge.net> | 2007-08-25 09:27:45 +0000 |
---|---|---|
committer | Franz Zotter <fzotter@users.sourceforge.net> | 2007-08-25 09:27:45 +0000 |
commit | c06087f322d92c890df29b9219fe8701c1feca4b (patch) | |
tree | 20106183fc59763ebeb3a1503b9f224a75271c1d /src/mtx_rowrfft.c | |
parent | dd2fe0125795532a9d5f0f3f99935e2707b5ab1b (diff) |
corrected malfunction in mtx_max2 and mtx_min2 and added some security to mtx_rowr(i)fft
svn path=/trunk/externals/iem/iemmatrix/; revision=8687
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) |