[PD-cvs] SF.net SVN: pure-data: [9710] branches/pd-extended/v0-40/pd/src/g_array.c

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Wed Apr 16 01:53:44 CEST 2008


Revision: 9710
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9710&view=rev
Author:   eighthave
Date:     2008-04-15 16:53:44 -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

Modified Paths:
--------------
    branches/pd-extended/v0-40/pd/src/g_array.c

Modified: branches/pd-extended/v0-40/pd/src/g_array.c
===================================================================
--- branches/pd-extended/v0-40/pd/src/g_array.c	2008-04-15 23:53:39 UTC (rev 9709)
+++ branches/pd-extended/v0-40/pd/src/g_array.c	2008-04-15 23:53:44 UTC (rev 9710)
@@ -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