From 37020a5a41c83769876e8f21fbefade022368417 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 15 Apr 2008 23:53:39 +0000 Subject: checked in Thomas' patch 1930769 to fix a memory leak in g_array.c in the sine/cosine sum code svn path=/trunk/; revision=9709 --- .../sine_cosine_sum_memory_leak_fix-0.41.4.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch (limited to 'packages') diff --git a/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch b/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch new file mode 100644 index 00000000..2763f42f --- /dev/null +++ b/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch @@ -0,0 +1,22 @@ +Index: g_array.c +=================================================================== +--- g_array.c (revision 9700) ++++ g_array.c (working copy) +@@ -1207,7 +1207,7 @@ + + static void garray_sinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv) + { +- t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc); ++ t_float *svec; + int npoints, i; + if (argc < 2) + { +@@ -1230,7 +1230,7 @@ + + static void garray_cosinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv) + { +- t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc); ++ t_float *svec; + int npoints, i; + if (argc < 2) + { -- cgit v1.2.1