diff options
author | James Booth <boothj5@gmail.com> | 2014-06-15 20:37:03 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-06-15 20:37:03 +0100 |
commit | d4afcd3258c2d6641ae4323c649fc8ebf007e69a (patch) | |
tree | de4f547c1f6435f68ab5115942b267ea60984eb6 | |
parent | f592f610565b83847960291ffb0b280b0a2d0e0a (diff) | |
download | profani-tty-d4afcd3258c2d6641ae4323c649fc8ebf007e69a.tar.gz |
Fixed memleak when leaving rooms
-rw-r--r-- | src/muc.c | 2 |
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); } } |