Update of /cvsroot/pure-data/externals/mrpeach/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1696
Modified Files: tcpserver.c Log Message: Removed unused static binbuf that caused occasional crashes when reinstantiating the object. Thanks IOhannes for pointing it out!
Index: tcpserver.c =================================================================== RCS file: /cvsroot/pure-data/externals/mrpeach/net/tcpserver.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tcpserver.c 20 Jun 2007 20:31:34 -0000 1.5 --- tcpserver.c 23 Jul 2007 16:48:29 -0000 1.6 *************** *** 63,67 ****
static t_class *tcpserver_class; - static t_binbuf *inbinbuf; static char objName[] = "tcpserver";
--- 63,66 ---- *************** *** 588,592 **** x->x_sockout = outlet_new(&x->x_obj, &s_float); /* 3rd outlet for socket number of current client */ x->x_addrout = outlet_new(&x->x_obj, &s_list); /* 4th outlet for ip address of current client */ - inbinbuf = binbuf_new(); } x->x_connectsocket = sockfd; --- 587,590 ---- *************** *** 631,635 **** }
- binbuf_free(inbinbuf); }
--- 629,632 ----