You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing with customwidget.zig example and noticed that
zfltk does not execute deinit method.
Does zfltk calls deinit on custom / wrapper widgets or semething has to be done manually
The text was updated successfully, but these errors were encountered:
std.debug.print("Deinit\n",.{});
self.box1.deinit();
self.box2.deinit();
self.label.deinit();
app.allocator.destroy(self);
}
and it did not execute unless i added defer sw.deinit();
so while fltk did managed child widgets (c++ objects), what about zig structs that run
pub fn init(opts: Options) !*Switch {
var self = try app.allocator.create(Switch);
...
}
and dont run
pub fn deinit(self: *Switch) void {
...
app.allocator.destroy(self);
}
I have been playing with customwidget.zig example and noticed that
zfltk does not execute deinit method.
Does zfltk calls deinit on custom / wrapper widgets or semething has to be done manually
The text was updated successfully, but these errors were encountered: