aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/conference.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/jabber/conference.c')
-rw-r--r--protocols/jabber/conference.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c
index ebb97a72..3de205c8 100644
--- a/protocols/jabber/conference.c
+++ b/protocols/jabber/conference.c
@@ -121,7 +121,10 @@ static xt_status jabber_chat_join_failed(struct im_connection *ic, struct xt_nod
jabber_error_free(err);
}
if (bud) {
- jabber_chat_free(jabber_chat_by_jid(ic, bud->bare_jid));
+ struct groupchat *c = jabber_chat_by_jid(ic, bud->bare_jid);
+ if (c) {
+ jabber_chat_free(c);
+ }
}
return XT_HANDLED;