╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │41 }; │ │42 │ │43 var next_root = try ui.initRoot(allocator, &(page orelse unreachable), &session);│ │44 - errdefer next_root.deinit(); │ │44 + errdefer next_root.deinit(allocator); │ │45 │ │46 - if (root) |*old_root| old_root.deinit(); │ │46 + if (root) |*old_root| old_root.deinit(allocator); │ │47 root = next_root; │ │48 │ │49 try tick(max_width); │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │51 │ │52 fn tick(max_width: u32) !void { │ │53 const root_ptr = if (root) |*root_value| root_value else return error.NotStarted;│ │54 - try root_ptr.build(.{ │ │54 + try root_ptr.build(allocator, .{ │ │55 .min_size = .{ .width = null, .height = null }, │ │56 // height is null so the TUI grows to fit all its content; the browser │ │57 // page handles vertical scrolling. │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────╮ │74 40 => .arrow_down, │ │75 else => return, │ │76 }; │ │77 - try root_ptr.input(key, root_ptr.getFocus()); │ │77 + try root_ptr.input(allocator, key, root_ptr.getFocus());│ │78 } │ │79 │ │80 fn onMouseClick(focus_id: usize) !void { │ ╰────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │154 else => return error.NotATextInput, │ │155 } │ │156 const ti: *wgt.TextInput(ui.Widget) = @fieldParentPtr("focus", child.focus);│ │157 - try ti.setContent(bytes); │ │157 + try ti.setContent(allocator, bytes); │ │158 } │ │159 │ ╰─────────────────────────────────────────────────────────────────────────────────────╯