From 235c893f285103dd0925192ae12b69786647c165 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jun 2014 22:39:46 +0100 Subject: Properly free muc hashtables --- src/muc.c | 4 ++-- 1 file 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); -- cgit 1.4.1-2-gfad0