From 1b139c7db17f67a405f4e20d799a08dc1eb6bc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Mon, 18 Oct 2021 08:07:37 +0300 Subject: [PATCH 1/1] Text: Fixed a memory leak When GlyphBuffers were freed, the array holding them wasn't. --- src/ui/text.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/text.c b/src/ui/text.c index cbce4715..44897a70 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -1808,6 +1808,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { iForEach(Array, b, &buffers) { deinit_GlyphBuffer_(b.value); } + deinit_Array(&buffers); deinit_AttributedText(&attrText); return bounds; } -- 2.34.1