1
0
Fork 0
forked from wry/wry

all: clear more reference cycles at shutdown

This commit is contained in:
Julian Orth 2024-05-02 21:16:53 +02:00
parent 4d33dbf32f
commit 3473b89fb9
7 changed files with 76 additions and 9 deletions

View file

@ -264,7 +264,15 @@ impl Drop for Wm {
if let Some(window) = window.window.take() {
window.break_loops();
}
window.children.clear();
window.parent.take();
window.stack_link.take();
window.map_link.take();
}
self.windows_by_surface_id.clear();
self.windows_by_surface_serial.clear();
self.focus_window.take();
self.known_seats.clear();
}
}