diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-18 08:07:37 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-18 08:07:37 +0300 |
commit | 164de748cdd63e7cf092714729dfc73864e6c9bc (patch) | |
tree | 759afcbd4786a9d6e53ab32851e7a4a0f2dfc23c /src | |
parent | 4c84613543bf24373bdb57049ae50f5d6bb28a62 (diff) |
Text: Fixed a memory leak
When GlyphBuffers were freed, the array holding them wasn't.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/text.c | 1 |
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 | } |