1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Properly free muc hashtables

This commit is contained in:
James Booth 2014-06-15 22:39:46 +01:00
parent 6483bc8d7c
commit 235c893f28

View File

@ -576,13 +576,13 @@ _free_room(ChatRoom *room)
free(room->subject);
free(room->password);
if (room->roster != NULL) {
g_hash_table_remove_all(room->roster);
g_hash_table_destroy(room->roster);
}
if (room->nick_ac != NULL) {
autocomplete_free(room->nick_ac);
}
if (room->nick_changes != NULL) {
g_hash_table_remove_all(room->nick_changes);
g_hash_table_destroy(room->nick_changes);
}
if (room->pending_broadcasts != NULL) {
g_list_free_full(room->pending_broadcasts, free);