Mercurial > pidgin.yaz
changeset 3618:6b12659dfd70
[gaim-migrate @ 3732]
I forgot this.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 09 Oct 2002 06:25:46 +0000 |
parents | fcf1fc6c73a0 |
children | a19850d6e718 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;