aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/navbutton/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/navbutton/root.zig')
-rw-r--r--src/app/components/navbutton/root.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/components/navbutton/root.zig b/src/app/components/navbutton/root.zig
index 7704b90..b76af43 100644
--- a/src/app/components/navbutton/root.zig
+++ b/src/app/components/navbutton/root.zig
@@ -27,6 +27,15 @@ pub fn init(self: *Self, element: *zs.Object) !void {
self.button.classList = try button.get(&env, "classList").await(&env, .object);
}
+pub fn deinit(self: *Self) !void {
+ var env: zs.Env = .default;
+ defer env.deinit();
+
+ _ = self.element.free(&env);
+ _ = self.shadow_root.free(&env);
+ _ = self.button.classList.free(&env);
+}
+
pub fn open(self: *Self) !void {
var env: zs.Env = .default;
defer env.deinit();