diff options
author | Jan Hruban <hrubi13@gmail.com> | 2011-06-15 14:18:49 +0200 |
---|---|---|
committer | Jan Hruban <hrubi13@gmail.com> | 2011-06-15 14:18:49 +0200 |
commit | bd114221b85ae8c1ffec41f1be98570030d33e03 (patch) | |
tree | 81e9a3fe4ac88143032aac773eaadeff713397fe /protocols | |
parent | c573f1b53466e34c26296227e4c661df9cae1c15 (diff) |
Free skype groupchats on logout
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/skype/skype.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/skype/skype.c b/protocols/skype/skype.c index e681a2c4..6a3e6393 100644 --- a/protocols/skype/skype.c +++ b/protocols/skype/skype.c @@ -1200,6 +1200,9 @@ static void skype_logout(struct im_connection *ic) skype_printf(ic, "SET USERSTATUS OFFLINE\n"); + while( ic->groupchats ) + imcb_chat_free(ic->groupchats->data); + for (i = 0; i < g_list_length(sd->groups); i++) { struct skype_group *sg = (struct skype_group *)g_list_nth_data(sd->groups, i); skype_group_free(sg, FALSE); |