aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-07-02 10:30:48 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-07-02 10:30:48 +0100
commitc3774175d29802202afb226a2661d0c3c52fb7b1 (patch)
treee1478c017e61fcc04e0711bf7374536508c9f646
parent9c9b37cbfa27a038bc57624cb9001f8db019290c (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.
-rw-r--r--protocols/jabber/jabber.c3
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 )