mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 00:46:20 +00:00
Fixed memleak when leaving rooms
This commit is contained in:
@@ -584,10 +584,10 @@ _free_room(ChatRoom *room)
|
|||||||
if (room->nick_changes != NULL) {
|
if (room->nick_changes != NULL) {
|
||||||
g_hash_table_remove_all(room->nick_changes);
|
g_hash_table_remove_all(room->nick_changes);
|
||||||
}
|
}
|
||||||
free(room);
|
|
||||||
if (room->pending_broadcasts != NULL) {
|
if (room->pending_broadcasts != NULL) {
|
||||||
g_list_free_full(room->pending_broadcasts, free);
|
g_list_free_full(room->pending_broadcasts, free);
|
||||||
}
|
}
|
||||||
|
free(room);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user