aboutsummaryrefslogtreecommitdiff
path: root/packages/patches
diff options
context:
space:
mode:
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)
+ {