From c5695a5f6d613bf54ced44a848622825bff17b46 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 20 Apr 2015 23:09:13 +0200
Subject: degesch: fix SIGSEGV on /quit
---
degesch.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
cgit v1.2.3-70-g09d2