aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r--protocols/jabber/jabber.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c
index 38fb4966..47e90d90 100644
--- a/protocols/jabber/jabber.c
+++ b/protocols/jabber/jabber.c
@@ -344,7 +344,9 @@ static void jabber_logout(struct im_connection *ic)
g_hash_table_destroy(jd->node_cache);
}
- jabber_buddy_remove_all(ic);
+ if (jd->buddies) {
+ jabber_buddy_remove_all(ic);
+ }
xt_free(jd->xt);