aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc_im.c b/irc_im.c
index 337cd30b..6add08dd 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -907,7 +907,8 @@ static gboolean bee_irc_channel_chat_part( irc_channel_t *ic, const char *msg )
/* Remove references in both directions now. We don't need each other anymore. */
ic->data = NULL;
- c->ui_data = NULL;
+ if( c )
+ c->ui_data = NULL;
return TRUE;
}