From 091345fd026d6bc10355b711141d11ee282b7059 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 1 Apr 2026 11:14:15 +0200 Subject: [PATCH] fix(gui): fix resize crash --- src/gui/gpu/gpu.zig | 3 +++ 1 file changed, 3 insertions(+) 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 = .{}; } }