fix: destructor should not change pointer to undefined
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 36s

This commit is contained in:
2024-11-16 20:12:02 +01:00
parent ec71e34958
commit 90af887d77
12 changed files with 0 additions and 12 deletions

View File

@@ -77,7 +77,6 @@ pub fn Layout(comptime Event: type, comptime Element: type, comptime Renderer: t
}
this.elements.deinit();
this.allocator.destroy(this);
this.* = undefined;
}
pub fn handle(this: *@This(), event: Event) !*Events {