aboutsummaryrefslogtreecommitdiff
path: root/src/strcmp.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-02-10 15:10:36 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-02-10 15:10:36 +0000
commitd5e5c2753c1c66a507986b510970751b138f5177 (patch)
tree739fb5221a299f06a575ede760e386b6f4976830 /src/strcmp.c
parent31d70374cf3b2761a4ae1ba3314ea93bfeb9105a (diff)
fixed bug with memory freeing
svn path=/trunk/externals/zexy/; revision=4576
Diffstat (limited to 'src/strcmp.c')
-rw-r--r--src/strcmp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/strcmp.c b/src/strcmp.c
index a97f467..684c15a 100644
--- a/src/strcmp.c
+++ b/src/strcmp.c
@@ -50,7 +50,6 @@ typedef struct _strcmp_proxy
static void strcmp_bang(t_strcmp *x)
{
int result = 0;
-
if(x->str1){
if(x->str2)
result = strcmp(x->str1, x->str2);
@@ -70,13 +69,11 @@ static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc, t_atom*argv
{
int i=0;
char*s=0;
- if(*str&&*n)freebytes(str, *n);
+ if(*str&&*n)freebytes(*str, *n);
binbuf_clear(*bbuf);
binbuf_add(*bbuf, argc, argv);
-
binbuf_gettext(*bbuf, str, n);
-
i=*n;
s=*str;
@@ -143,7 +140,6 @@ static void strcmp_free(t_strcmp *x)
{
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);