Fix some memory leaks

This commit is contained in:
Ben Buhse 2026-02-22 17:38:28 -06:00
commit 8e6c28da7b
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
7 changed files with 37 additions and 10 deletions

View file

@ -52,7 +52,15 @@ pub fn destroy(wm: *WindowManager) void {
seat.destroy();
}
}
{
var it = wm.orphan_windows.safeIterator(.forward);
while (it.next()) |window| {
window.link.remove();
window.destroy();
}
}
wm.river_window_manager_v1.destroy();
utils.gpa.destroy(wm);
}