From 03eb8d032a1b7e09230ed3ff777fa99831172b17 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 1 Oct 2019 11:09:25 +0200 Subject: [PATCH] fix the fix --- src/irc/core/irc-servers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index fcd9346e..3ec0bba5 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -457,8 +457,10 @@ static void sig_destroyed(IRC_SERVER_REC *server) server->cap_queue = NULL; /* was g_free_and_null, but can't use on a GString */ - g_string_free(server->sasl_buffer, TRUE); - server->sasl_buffer = NULL; + if (server->sasl_buffer != NULL) { + g_string_free(server->sasl_buffer, TRUE); + server->sasl_buffer = NULL; + } /* these are dynamically allocated only if isupport was sent */ g_hash_table_foreach(server->isupport,