1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Fixed memleak when leaving rooms

This commit is contained in:
James Booth 2014-06-15 20:37:03 +01:00
parent f592f61056
commit d4afcd3258

View File

@ -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);
}
}