about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 20:37:03 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 20:37:03 +0100
commitd4afcd3258c2d6641ae4323c649fc8ebf007e69a (patch)
treede4f547c1f6435f68ab5115942b267ea60984eb6
parentf592f610565b83847960291ffb0b280b0a2d0e0a (diff)
downloadprofani-tty-d4afcd3258c2d6641ae4323c649fc8ebf007e69a.tar.gz
Fixed memleak when leaving rooms
-rw-r--r--src/muc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/muc.c b/src/muc.c
index 3cf1f506..22fd5256 100644
--- a/src/muc.c
+++ b/src/muc.c
@@ -584,10 +584,10 @@ _free_room(ChatRoom *room)
         if (room->nick_changes != NULL) {
             g_hash_table_remove_all(room->nick_changes);
         }
-        free(room);
         if (room->pending_broadcasts != NULL) {
             g_list_free_full(room->pending_broadcasts, free);
         }
+        free(room);
     }
 }