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-19 11:11:05 +0300 |
commit | 1b139c7db17f67a405f4e20d799a08dc1eb6bc94 (patch) | |
tree | 673bf9e1f260bf7a5f9876ee7d5595b943829c73 /src | |
parent | dece9b7406eb2c6eff768ff8a1badb7ef7076082 (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 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) { | |||
1808 | iForEach(Array, b, &buffers) { | 1808 | iForEach(Array, b, &buffers) { |
1809 | deinit_GlyphBuffer_(b.value); | 1809 | deinit_GlyphBuffer_(b.value); |
1810 | } | 1810 | } |
1811 | deinit_Array(&buffers); | ||
1811 | deinit_AttributedText(&attrText); | 1812 | deinit_AttributedText(&attrText); |
1812 | return bounds; | 1813 | return bounds; |
1813 | } | 1814 | } |