aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch
blob: 2763f42fc00cdf854219c1225abee95e3148ca4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
     {