[PD-cvs] SF.net SVN: pure-data: [9709] trunk/packages/patches/ sine_cosine_sum_memory_leak_fix-0.41.4.patch
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Wed Apr 16 01:53:39 CEST 2008
Revision: 9709
http://pure-data.svn.sourceforge.net/pure-data/?rev=9709&view=rev
Author: eighthave
Date: 2008-04-15 16:53:39 -0700 (Tue, 15 Apr 2008)
Log Message:
-----------
checked in Thomas' patch 1930769 to fix a memory leak in g_array.c in the sine/cosine sum code
Added Paths:
-----------
trunk/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch
Added: trunk/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch
===================================================================
--- trunk/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch (rev 0)
+++ trunk/packages/patches/sine_cosine_sum_memory_leak_fix-0.41.4.patch 2008-04-15 23:53:39 UTC (rev 9709)
@@ -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)
+ {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list