aboutsummaryrefslogtreecommitdiff
path: root/packages/patches
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-15 23:53:39 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-15 23:53:39 +0000
commit37020a5a41c83769876e8f21fbefade022368417 (patch)
tree9c3b2d75ad800f56af1fc8105f255ba89b5b3eed /packages/patches
parente87b26c1912431d937e130e8fddc967a55753867 (diff)
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
Diffstat (limited to 'packages/patches')
-rw-r--r--packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch22
1 files changed, 22 insertions, 0 deletions
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)
+ {