╭ changed ────────────╮ │src/ui/Home/Users.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │47 pub fn init(allocator: std.mem.Allocator, data: *const Self) !View {│ │48 var self = blk: { │ │49 var list = try ui.SelectableList.init(allocator); │ │50 - errdefer list.deinit(); │ │50 + errdefer list.deinit(allocator); │ │51 │ │52 break :blk View{ │ │53 .list = list, │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────╮ │54 .data = data, │ │55 }; │ │56 }; │ │57 - errdefer self.deinit(); │ │57 + errdefer self.deinit(allocator); │ │58 │ │59 var arena = std.heap.ArenaAllocator.init(allocator);│ │60 defer arena.deinit(); │ ╰────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │64 for (data.users, 0..) |user, i| { │ │65 lines[i] = try std.fmt.allocPrint(aa, "{s} ({s})", .{ user.name, user.display_name });│ │66 } │ │67 - try self.list.setItems(lines); │ │67 + try self.list.setItems(allocator, lines); │ │68 │ │69 return self; │ │70 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │71 │ │72 - pub fn deinit(self: *View) void { │ │73 - self.list.deinit(); │ │72 + pub fn deinit(self: *View, allocator: std.mem.Allocator) void { │ │73 + self.list.deinit(allocator); │ │74 } │ │75 │ │76 - pub fn build(self: *View, constraint: layout.Constraint, root_focus: *Focus) !void { │ │77 - try self.list.build(constraint, root_focus); │ │76 + pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ │77 + try self.list.build(allocator, constraint, root_focus); │ │78 } │ │79 │ │80 - pub fn input(self: *View, key: inp.Key, root_focus: *Focus) !void { │ │81 - try self.list.input(key, root_focus); │ │80 + pub fn input(self: *View, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void { │ │81 + try self.list.input(allocator, key, root_focus); │ │82 } │ │83 │ │84 pub fn clearGrid(self: *View) void { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯