Mercurial > pidgin
changeset 5745:cae58ab49118
[gaim-migrate @ 6169]
This should fix the infinite loop on disconnect in Trepia.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 04 Jun 2003 08:59:33 +0000 |
parents | 6b87c127fe7b |
children | 2c04c55222b7 |
files | src/protocols/trepia/trepia.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/trepia/trepia.c Wed Jun 04 08:57:22 2003 +0000 +++ b/src/protocols/trepia/trepia.c Wed Jun 04 08:59:33 2003 +0000 @@ -792,9 +792,19 @@ static void trepia_close(GaimConnection *gc) { + TrepiaSession *session = gc->proto_data; + __clear_user_list(gaim_connection_get_account(gc)); - g_free(gc->proto_data); + if (session->rxqueue != NULL) + g_string_free(session->rxqueue, TRUE); + + if (session->inpa) + gaim_input_remove(session->inpa); + + close(session->fd); + + g_free(session); gc->proto_data = NULL; }