diff options
author | dequis <dx@dxzone.com.ar> | 2015-08-08 01:31:56 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-08-08 01:31:56 -0300 |
commit | 666722e67f6802cea4ef231834ea9e3ad321fdae (patch) | |
tree | a85155cdcfeebb5328ef0e4e390c76b899d2d2d4 /protocols | |
parent | 83f179d6811f2047de368cf4050eb0508c6359c6 (diff) |
jabber_logout: avoid null jd->buddies warnings in jabber_buddy_remove_all
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/jabber/jabber.c | 4 |
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); |