mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Fixed memleak when leaving rooms
This commit is contained in:
parent
f592f61056
commit
d4afcd3258
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user