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
This commit is contained in:
Ali Alzyod 2020-06-09 10:25:10 +09:00 committed by WooHyun Jung
parent 101ca2db82
commit 18218f5072
1 changed files with 5 additions and 0 deletions

View File

@ -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;