fix: missing tty.deinit calls
This commit is contained in:
parent
72d96638a4
commit
09a4de63e5
2 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||||
|
|
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue