summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-18 08:07:37 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-18 08:07:37 +0300
commit164de748cdd63e7cf092714729dfc73864e6c9bc (patch)
tree759afcbd4786a9d6e53ab32851e7a4a0f2dfc23c
parent4c84613543bf24373bdb57049ae50f5d6bb28a62 (diff)
Text: Fixed a memory leak
When GlyphBuffers were freed, the array holding them wasn't.
-rw-r--r--src/ui/text.c1
1 files changed, 1 insertions, 0 deletions
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) {
1968 iForEach(Array, b, &buffers) { 1968 iForEach(Array, b, &buffers) {
1969 deinit_GlyphBuffer_(b.value); 1969 deinit_GlyphBuffer_(b.value);
1970 } 1970 }
1971 deinit_Array(&buffers);
1971 deinit_AttributedText(&attrText); 1972 deinit_AttributedText(&attrText);
1972 return bounds; 1973 return bounds;
1973} 1974}