diff options
author | musil <tmusil@users.sourceforge.net> | 2007-10-31 10:46:46 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2007-10-31 10:46:46 +0000 |
commit | fa3d10953e68379bfc96a86347bd177629f3e8a0 (patch) | |
tree | e9447003a62dfa651c1bae05eec848ad89bb0a41 /src/matchbox.c | |
parent | 2de6b6c4318ecdff9461f24f74b0a57a46d459dd (diff) |
win32 fixes
svn path=/trunk/externals/zexy/; revision=8915
Diffstat (limited to 'src/matchbox.c')
-rw-r--r-- | src/matchbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |