From 164de748cdd63e7cf092714729dfc73864e6c9bc Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 18 Oct 2021 08:07:37 +0300 Subject: 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(+) (limited to 'src') diff --git a/src/ui/text.c b/src/ui/text.c index d22faea1..6189c334 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -1968,6 +1968,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; } -- cgit v1.2.3