summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-20 23:09:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-20 23:09:13 +0200
commitc5695a5f6d613bf54ced44a848622825bff17b46 (patch)
treefc1d602652cfe63ef4104337f089e67e905c2fc6
parent5ad6581c5720710d3dc16092d9bee2ca2c3473b0 (diff)
downloadxK-c5695a5f6d613bf54ced44a848622825bff17b46.tar.gz
xK-c5695a5f6d613bf54ced44a848622825bff17b46.tar.xz
xK-c5695a5f6d613bf54ced44a848622825bff17b46.zip
degesch: fix SIGSEGV on /quit
-rw-r--r--degesch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index b65e213..0346867 100644
--- a/degesch.c
+++ b/degesch.c
@@ -532,7 +532,8 @@ app_context_free (struct app_context *self)
str_map_free (&self->irc_channels);
str_map_free (&self->irc_buffer_map);
- user_unref (self->irc_user);
+ if (self->irc_user)
+ user_unref (self->irc_user);
free (self->irc_user_mode);
free (self->irc_user_host);