woohyun pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=18218f50729fac5d27c004a504ef96d146d6f9e7
commit 18218f50729fac5d27c004a504ef96d146d6f9e7 Author: Ali Alzyod <[email protected]> Date: Tue Jun 9 10:25:10 2020 +0900 evas_common_font: release reallocated glyphs bitmaps data Reviewers: woohyun, smohanty Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8743 Differential Revision: https://phab.enlightenment.org/D11945 --- src/lib/evas/common/evas_font_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/evas/common/evas_font_main.c b/src/lib/evas/common/evas_font_main.c index 799f8a89d0..dfd7ef991b 100644 --- a/src/lib/evas/common/evas_font_main.c +++ b/src/lib/evas/common/evas_font_main.c @@ -597,6 +597,11 @@ _glyph_free(RGBA_Font_Glyph *fg) if ((fg->glyph_out->rle) && (fg->glyph_out->bitmap.rle_alloc)) free(fg->glyph_out->rle); + else if ((fg->glyph_out->bitmap.buffer) && (fg->glyph_out->bitmap.rle_alloc)) + { + free(fg->glyph_out->bitmap.buffer); + fg->glyph_out->bitmap.buffer = NULL; + } fg->glyph_out->rle = NULL; if (!fg->glyph_out->bitmap.no_free_glout) free(fg->glyph_out); fg->glyph_out = NULL; --
