summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_main.c
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-06-09 10:25:10 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-06-09 10:25:10 +0900
commit18218f50729fac5d27c004a504ef96d146d6f9e7 (patch)
tree068b66a315a05a62f8fda81d6f424177b073ed39 /src/lib/evas/common/evas_font_main.c
parent101ca2db82a476e038c08edc798aabb4ce425b84 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_main.c5
1 files changed, 5 insertions, 0 deletions
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)
597 597
598 if ((fg->glyph_out->rle) && (fg->glyph_out->bitmap.rle_alloc)) 598 if ((fg->glyph_out->rle) && (fg->glyph_out->bitmap.rle_alloc))
599 free(fg->glyph_out->rle); 599 free(fg->glyph_out->rle);
600 else if ((fg->glyph_out->bitmap.buffer) && (fg->glyph_out->bitmap.rle_alloc))
601 {
602 free(fg->glyph_out->bitmap.buffer);
603 fg->glyph_out->bitmap.buffer = NULL;
604 }
600 fg->glyph_out->rle = NULL; 605 fg->glyph_out->rle = NULL;
601 if (!fg->glyph_out->bitmap.no_free_glout) free(fg->glyph_out); 606 if (!fg->glyph_out->bitmap.no_free_glout) free(fg->glyph_out);
602 fg->glyph_out = NULL; 607 fg->glyph_out = NULL;