Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18697
Modified Files: Tag: devel_0_39 x_midi.c Log Message: fixed memory leak in [poly]
Index: x_midi.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_midi.c,v retrieving revision 1.2.8.1 retrieving revision 1.2.8.2 diff -C2 -d -r1.2.8.1 -r1.2.8.2 *** x_midi.c 27 Nov 2005 07:57:10 -0000 1.2.8.1 --- x_midi.c 27 Nov 2005 23:16:47 -0000 1.2.8.2 *************** *** 1181,1184 **** --- 1181,1185 ---- static void poly_free(t_poly *x) { + poly_clear(x); freebytes(x->x_vec, x->x_n * sizeof (*x->x_vec)); } *************** *** 1187,1191 **** { poly_class = class_new(gensym("poly"), ! (t_newmethod)poly_new, (t_method)poly_clear, sizeof(t_poly), 0, A_DEFFLOAT, A_DEFFLOAT, 0); class_addfloat(poly_class, poly_float); --- 1188,1192 ---- { poly_class = class_new(gensym("poly"), ! (t_newmethod)poly_new, (t_method)poly_free, sizeof(t_poly), 0, A_DEFFLOAT, A_DEFFLOAT, 0); class_addfloat(poly_class, poly_float);