Fix some memory leaks
This commit is contained in:
parent
9fef3f70f5
commit
8e6c28da7b
7 changed files with 37 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue