From fa3d10953e68379bfc96a86347bd177629f3e8a0 Mon Sep 17 00:00:00 2001 From: musil Date: Wed, 31 Oct 2007 10:46:46 +0000 Subject: win32 fixes svn path=/trunk/externals/zexy/; revision=8915 --- src/matchbox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/matchbox.c') diff --git a/src/matchbox.c b/src/matchbox.c index 1942248..131fc5c 100644 --- a/src/matchbox.c +++ b/src/matchbox.c @@ -94,10 +94,14 @@ static t_listlist* addlistlist(t_listlist*list, int argc, t_atom*argv) { /* delete the _next_ element from the list */ static t_listlist* deletelistnext(t_listlist*list) { + t_listlist*ll=0; + if(!list || !list->next)return list; /* nothing to delete */ - t_listlist*ll=list->next; + + ll=list->next; list->next=ll->next; if(ll->argv)freebytes(ll->argv, ll->argc*sizeof(t_atom)); + ll->argv=0; ll->argc=0; ll->next=0; -- cgit v1.2.1