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());