From f187cdda9da45ec3cca71699ae26e72c7a1bd087 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 31 Aug 2026 22:04:56 +0200 Subject: [PATCH] Fix font memory leak --- client/render/imgui_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/render/imgui_impl.cpp b/client/render/imgui_impl.cpp index 9890d3e5..a235f30e 100644 --- a/client/render/imgui_impl.cpp +++ b/client/render/imgui_impl.cpp @@ -541,7 +541,7 @@ void imgui_context::initialize_fonts() font_awesome.emplace_back("assets://Font Awesome 7 Brands-Regular-400.otf"); ImFontConfig config; - config.FontDataOwnedByAtlas = false; + config.FontDataOwnedByAtlas = true; for (auto & font: fonts) { @@ -550,6 +550,7 @@ void imgui_context::initialize_fonts() config.MergeMode = true; } + config.FontDataOwnedByAtlas = false; config.MergeMode = true; config.GlyphMinAdvanceX = 40; // Use if you want to make the icon monospaced for (auto & fa: font_awesome)