mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02: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
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
if (server->cap_supported) {
|
||||||
g_hash_table_destroy(server->cap_supported);
|
g_hash_table_destroy(server->cap_supported);
|
||||||
server->cap_supported = NULL;
|
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…
Add table
Add a link
Reference in a new issue