From 3d4888f4304eba7bf4d58c4bc639532a393341ec Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 7 May 2024 22:26:59 -0700 Subject: [PATCH] examples: glyphs: fix double-free of texture Signed-off-by: Stephen Gutekanst --- examples/glyphs/App.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/glyphs/App.zig b/examples/glyphs/App.zig index 2c4df07c..83c14bc8 100644 --- a/examples/glyphs/App.zig +++ b/examples/glyphs/App.zig @@ -69,6 +69,7 @@ fn afterInit( // Create a sprite rendering pipeline const texture = glyphs.state().texture; const pipeline = try entities.new(); + texture.reference(); try sprite_pipeline.set(pipeline, .texture, texture); sprite_pipeline.send(.update, .{});