Skip to content

Commit

Permalink
Fixes involving --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sound and Fury committed Sep 17, 2010
1 parent 4aff293 commit 3c8779e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quirc.c
Expand Up @@ -151,6 +151,7 @@ int main(int argc, char *argv[])
bufs[b].ping++;
}
bufs[b].last=now;
in_update(inp);
}
}
else if(!bufs[bufs[b].server].live)
Expand Down Expand Up @@ -422,7 +423,7 @@ int main(int argc, char *argv[])
if(state!=0)
printf("quirc exiting\n");
int b;
for(b=0;b<nbufs;b++)
for(b=1;b<nbufs;b++)
{
if((bufs[b].live) && (bufs[b].type==SERVER) && (bufs[b].handle!=0))
{
Expand All @@ -435,6 +436,8 @@ int main(int argc, char *argv[])
free_buffer(b);
b--;
}
bufs[0].live=false;
free_buffer(0);
if(bufs) free(bufs);
if(username) free(username);
if(fname) free(fname);
Expand Down

0 comments on commit 3c8779e

Please sign in to comment.