mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1130 from ailin-nemui/string-free
Only call g_string_free if there is a string
This commit is contained in:
commit
49c6c2b69f
@ -457,8 +457,10 @@ static void sig_destroyed(IRC_SERVER_REC *server)
|
|||||||
server->cap_queue = NULL;
|
server->cap_queue = NULL;
|
||||||
|
|
||||||
/* was g_free_and_null, but can't use on a GString */
|
/* was g_free_and_null, but can't use on a GString */
|
||||||
g_string_free(server->sasl_buffer, TRUE);
|
if (server->sasl_buffer != NULL) {
|
||||||
server->sasl_buffer = NULL;
|
g_string_free(server->sasl_buffer, TRUE);
|
||||||
|
server->sasl_buffer = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* these are dynamically allocated only if isupport was sent */
|
/* these are dynamically allocated only if isupport was sent */
|
||||||
g_hash_table_foreach(server->isupport,
|
g_hash_table_foreach(server->isupport,
|
||||||
|
Loading…
Reference in New Issue
Block a user