forked from enlightenment/efl
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:
parent
101ca2db82
commit
18218f5072
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue