forked from enlightenment/efl
Evas font: Fixed memory leak when reloading an already-loaded face.
SVN revision: 56538
This commit is contained in:
parent
a98aaaae64
commit
a7e2bbabae
|
@ -89,6 +89,8 @@ EAPI void
|
|||
evas_common_font_ot_load_face(void *_font)
|
||||
{
|
||||
RGBA_Font_Source *font = (RGBA_Font_Source *) _font;
|
||||
/* Unload the face if by any chance it's already loaded */
|
||||
evas_common_font_ot_unload_face(font);
|
||||
font->hb.face = hb_ft_face_create(font->ft.face, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue