mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
d21706e1cc
commit
57827ca743
@ -443,8 +443,10 @@ static void sig_disconnected(IRC_SERVER_REC *server)
|
|||||||
gslist_free_full(server->cap_active, (GDestroyNotify) g_free);
|
gslist_free_full(server->cap_active, (GDestroyNotify) g_free);
|
||||||
server->cap_active = NULL;
|
server->cap_active = NULL;
|
||||||
|
|
||||||
g_hash_table_destroy(server->cap_supported);
|
if (server->cap_supported) {
|
||||||
server->cap_supported = NULL;
|
g_hash_table_destroy(server->cap_supported);
|
||||||
|
server->cap_supported = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||||
server->cap_queue = NULL;
|
server->cap_queue = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user