[PD-cvs] pd/extra/bonk~ bonk~.c,1.3.4.2,1.3.4.3

Mathieu Bouchard matju at users.sourceforge.net
Mon Nov 28 00:17:35 CET 2005


Update of /cvsroot/pure-data/pd/extra/bonk~
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18955

Modified Files:
      Tag: devel_0_39
	bonk~.c 
Log Message:
fixed warnings
fixed memory leak


Index: bonk~.c
===================================================================
RCS file: /cvsroot/pure-data/pd/extra/bonk~/bonk~.c,v
retrieving revision 1.3.4.2
retrieving revision 1.3.4.3
diff -C2 -d -r1.3.4.2 -r1.3.4.3
*** bonk~.c	16 Jul 2005 16:20:57 -0000	1.3.4.2
--- bonk~.c	27 Nov 2005 23:17:33 -0000	1.3.4.3
***************
*** 232,237 ****
      int nfit, ninsig = x->x_ninsig, ntemplate = x->x_ntemplate;
      t_insig *gp;
-     int totalbins = NFILTERS * ninsig;
-     
      x->x_willattack = 0;
  
--- 232,235 ----
***************
*** 695,699 ****
      }
  nomore:
!     if (remaining = (ntemplate % x->x_ninsig))
      {
          post("bonk_read: %d templates not a multiple of %d; dropping extras");
--- 693,698 ----
      }
  nomore:
!     remaining = ntemplate % x->x_ninsig;
!     if (remaining)
      {
          post("bonk_read: %d templates not a multiple of %d; dropping extras");
***************
*** 951,955 ****
  void bonk_tilde_setup(void)
  {
!     bonk_class = class_new(gensym("bonk~"), (t_newmethod)bonk_new, 0,
          sizeof(t_bonk), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
      class_addmethod(bonk_class, nullfn, gensym("signal"), 0);
--- 950,954 ----
  void bonk_tilde_setup(void)
  {
!     bonk_class = class_new(gensym("bonk~"), (t_newmethod)bonk_new, (t_method)bonk_free,
          sizeof(t_bonk), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
      class_addmethod(bonk_class, nullfn, gensym("signal"), 0);





More information about the Pd-cvs mailing list