fix: missing tty.deinit calls

This commit is contained in:
ippsav 2024-07-04 16:27:50 +01:00 committed by Tim Culverhouse
parent 72d96638a4
commit 09a4de63e5
2 changed files with 3 additions and 0 deletions

View file

@ -25,6 +25,7 @@ pub fn main() !void {
defer user_list.deinit(); defer user_list.deinit();
var tty = try vaxis.Tty.init(); var tty = try vaxis.Tty.init();
defer tty.deinit();
var vx = try vaxis.init(alloc, .{}); var vx = try vaxis.init(alloc, .{});
defer vx.deinit(alloc, tty.anyWriter()); defer vx.deinit(alloc, tty.anyWriter());

View file

@ -21,6 +21,8 @@ pub fn main() !void {
const alloc = gpa.allocator(); const alloc = gpa.allocator();
var tty = try vaxis.Tty.init(); var tty = try vaxis.Tty.init();
defer tty.deinit();
var vx = try vaxis.init(alloc, .{}); var vx = try vaxis.init(alloc, .{});
defer vx.deinit(alloc, tty.anyWriter()); defer vx.deinit(alloc, tty.anyWriter());