1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Don't free the hash table if there's none

Glib doesn't like that and shows a harmless warning.
This commit is contained in:
LemonBoy 2017-10-21 10:44:53 +02:00
parent d21706e1cc
commit 57827ca743

View File

@ -443,8 +443,10 @@ static void sig_disconnected(IRC_SERVER_REC *server)
gslist_free_full(server->cap_active, (GDestroyNotify) g_free);
server->cap_active = NULL;
g_hash_table_destroy(server->cap_supported);
server->cap_supported = NULL;
if (server->cap_supported) {
g_hash_table_destroy(server->cap_supported);
server->cap_supported = NULL;
}
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
server->cap_queue = NULL;