View: add more assertions around destruction
This should make leaks like the one fixed by the previous commit harder to write.
This commit is contained in:
@ -726,7 +726,7 @@ fn commitTransaction(root: *Root) void {
|
||||
var it = root.hidden.inflight.focus_stack.safeIterator(.forward);
|
||||
while (it.next()) |view| {
|
||||
view.dropSavedSurfaceTree();
|
||||
if (view.destroying) view.destroy();
|
||||
if (view.destroying) view.destroy(.assert);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user