diff options
author | James Booth <boothj5@gmail.com> | 2014-06-15 22:39:46 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-06-15 22:39:46 +0100 |
commit | 235c893f285103dd0925192ae12b69786647c165 (patch) | |
tree | b8e1f0c577b2498d5c8264cd80be6b0aad14ba27 | |
parent | 6483bc8d7ce037497594c0d4f83b237b27a94cb8 (diff) | |
download | profani-tty-235c893f285103dd0925192ae12b69786647c165.tar.gz |
Properly free muc hashtables
-rw-r--r-- | src/muc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/muc.c b/src/muc.c index 22fd5256..64ca9bca 100644 --- a/src/muc.c +++ b/src/muc.c @@ -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); |