Fixed deinitialisation bug
This commit is contained in:
parent
20cae4b6e0
commit
2d4acf9572
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ pub fn main() !void {
|
|||
var allocator = gpa.allocator();
|
||||
|
||||
var tty = try vaxis.Tty.init();
|
||||
defer tty.deinit();
|
||||
var vx = try vaxis.init(allocator, .{});
|
||||
defer vx.deinit(allocator, tty.anyWriter());
|
||||
defer tty.deinit();
|
||||
|
||||
var topic_screen: TopicScreen = try TopicScreen.init(&allocator, &tty, &vx);
|
||||
var screen_interface = topic_screen.screenInterface();
|
||||
|
|
|
|||
Loading…
Reference in a new issue