diff --git a/src/gui/gpu/gpu.zig b/src/gui/gpu/gpu.zig index b1965e0a..f50c61d0 100644 --- a/src/gui/gpu/gpu.zig +++ b/src/gui/gpu/gpu.zig @@ -213,6 +213,9 @@ pub const WindowState = struct { c.deinit(global.glyph_cache_arena.allocator()); _ = global.glyph_cache_arena.reset(.retain_capacity); state.glyph_index_cache = null; + // cell_buf was allocated from the arena; clear it so the next + // resize doesn't memcpy from the now-freed memory. + state.cell_buf = .{}; } }