fixed execution order bug that was causing the first two frame numbers to output...
[puredata.git] / packages / patches / sine_cosine_sum_memory_leak_fix-0.41.4.patch
blob2763f42fc00cdf854219c1225abee95e3148ca4b
1 Index: g_array.c
2 ===================================================================
3 --- g_array.c (revision 9700)
4 +++ g_array.c (working copy)
5 @@ -1207,7 +1207,7 @@
7 static void garray_sinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv)
8 {
9 - t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc);
10 + t_float *svec;
11 int npoints, i;
12 if (argc < 2)
14 @@ -1230,7 +1230,7 @@
16 static void garray_cosinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv)
18 - t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc);
19 + t_float *svec;
20 int npoints, i;
21 if (argc < 2)