Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3967
Modified Files: strcmp.c Log Message: fixed bug with memory freeing
Index: strcmp.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/strcmp.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** strcmp.c 26 Jan 2006 12:16:47 -0000 1.4 --- strcmp.c 10 Feb 2006 15:10:36 -0000 1.5 *************** *** 51,55 **** { int result = 0; - if(x->str1){ if(x->str2) --- 51,54 ---- *************** *** 71,81 **** int i=0; char*s=0; ! if(*str&&*n)freebytes(str, *n);
binbuf_clear(*bbuf); binbuf_add(*bbuf, argc, argv); - binbuf_gettext(*bbuf, str, n); - i=*n; s=*str; --- 70,78 ---- int i=0; char*s=0; ! if(*str&&*n)freebytes(*str, *n);
binbuf_clear(*bbuf); binbuf_add(*bbuf, argc, argv); binbuf_gettext(*bbuf, str, n); i=*n; s=*str; *************** *** 144,148 **** binbuf_free(x->bbuf1); binbuf_free(x->bbuf2); - if(x->str1&&x->n1)freebytes(x->str1, x->n1); if(x->str2&&x->n2)freebytes(x->str2, x->n2); --- 141,144 ----