From: Rob F. <rob...@us...> - 2002-10-09 06:25:49
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory usw-pr-cvs1:/tmp/cvs-serv30962/irc Modified Files: irc.c Log Message: I forgot this. Index: irc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -d -r1.92 -r1.93 --- irc.c 9 Oct 2002 06:09:10 -0000 1.92 +++ irc.c 9 Oct 2002 06:25:46 -0000 1.93 @@ -1424,6 +1424,7 @@ static void irc_close(struct gaim_connection *gc) { struct irc_data *idata = (struct irc_data *)gc->proto_data; + gchar buf[IRC_BUF_LEN]; if (idata->str->len > 0) { @@ -1436,6 +1437,20 @@ if (idata->rxqueue) g_free(idata->rxqueue); + + /* Kill any existing transfers */ + while (idata->file_transfers) { + struct irc_file_transfer *ift = (struct irc_file_transfer *)idata->file_transfers->data; + + g_free(ift->sn); + g_free(ift->name); + gaim_input_remove(ift->watcher); + + close(ift->fd); + + idata->file_transfers = idata->file_transfers->next; + } + idata->rxqueue = NULL; idata->rxlen = 0; |