Evas font: Fixed memory leak when reloading an already-loaded face.

SVN revision: 56538
This commit is contained in:
Tom Hacohen 2011-01-30 10:45:23 +00:00
parent a98aaaae64
commit a7e2bbabae
1 changed files with 2 additions and 0 deletions

View File

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