aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2003-05-24 15:43:08 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2003-05-24 15:43:08 +0000
commitae6bfc884b96cae7015844543cb6814006303467 (patch)
treea9e946c6e0b3d99b7d7e36fc779c9dd3563a1cd3
parent0e6f068efe4023d77928efcee1bb1a90c00ec2a2 (diff)
fixed a bug when freeing memory
svn path=/trunk/externals/zexy/; revision=653
-rw-r--r--src/z_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/z_sort.c b/src/z_sort.c
index e0c656a..633d128 100644
--- a/src/z_sort.c
+++ b/src/z_sort.c
@@ -84,7 +84,7 @@ static void sort_list(t_sort *x, t_symbol *s, int argc, t_atom *argv)
outlet_list(x->x_obj.ob_outlet, &s_list, n, atombuf);
- freebytes(atombuf, sizeof(atombuf));
+ freebytes(atombuf, argc*sizeof(t_atom));
}
static void *sort_new(t_floatarg f)