mod(element): introduce deinit interface for deinitializing Elements automatically with the Container
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m34s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m34s
This commit is contained in:
@@ -648,6 +648,7 @@ pub fn Container(Model: type, Event: type) type {
|
||||
pub fn deinit(this: *@This()) void {
|
||||
for (this.elements.items) |*element| element.deinit();
|
||||
this.elements.deinit(this.allocator);
|
||||
this.element.deinit();
|
||||
}
|
||||
|
||||
pub fn append(this: *@This(), element: @This()) !void {
|
||||
|
||||
Reference in New Issue
Block a user