# HG changeset patch # User Rob Flynn # Date 1034144746 0 # Node ID 6b12659dfd701d3c5cce552b791358c275c496d7 # Parent fcf1fc6c73a0442ed5ef1170912822f565708adc [gaim-migrate @ 3732] I forgot this. committer: Tailor Script diff -r fcf1fc6c73a0 -r 6b12659dfd70 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Wed Oct 09 06:17:05 2002 +0000 +++ b/src/protocols/irc/irc.c Wed Oct 09 06:25:46 2002 +0000 @@ -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;