diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-02 10:30:48 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-02 10:30:48 +0100 |
commit | c3774175d29802202afb226a2661d0c3c52fb7b1 (patch) | |
tree | e1478c017e61fcc04e0711bf7374536508c9f646 /protocols/jabber/jabber.c | |
parent | 9c9b37cbfa27a038bc57624cb9001f8db019290c (diff) |
Cleaning up groupchats when shutting down the Jabber connection. The
cleaning up of groupchats isn't done very well yet, but this will at
least keep things sane.
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r-- | protocols/jabber/jabber.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index e1cef48b..9df1dc74 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -196,6 +196,9 @@ static void jabber_logout( struct im_connection *ic ) jabber_end_stream( ic ); + while( ic->groupchats ) + imcb_chat_free( ic->groupchats ); + if( jd->r_inpa >= 0 ) b_event_remove( jd->r_inpa ); if( jd->w_inpa >= 0 ) |