From 09a4de63e5388f46ff164d68995e5745ba290f8d Mon Sep 17 00:00:00 2001 From: ippsav Date: Thu, 4 Jul 2024 16:27:50 +0100 Subject: [PATCH] fix: missing tty.deinit calls --- examples/table.zig | 1 + examples/vaxis.zig | 2 ++ 2 files changed, 3 insertions(+) diff --git a/examples/table.zig b/examples/table.zig index 3de8503..96bc8b7 100644 --- a/examples/table.zig +++ b/examples/table.zig @@ -25,6 +25,7 @@ pub fn main() !void { defer user_list.deinit(); var tty = try vaxis.Tty.init(); + defer tty.deinit(); var vx = try vaxis.init(alloc, .{}); defer vx.deinit(alloc, tty.anyWriter()); diff --git a/examples/vaxis.zig b/examples/vaxis.zig index fe9a4f8..a006ba8 100644 --- a/examples/vaxis.zig +++ b/examples/vaxis.zig @@ -21,6 +21,8 @@ pub fn main() !void { const alloc = gpa.allocator(); var tty = try vaxis.Tty.init(); + defer tty.deinit(); + var vx = try vaxis.init(alloc, .{}); defer vx.deinit(alloc, tty.anyWriter());