Evas font-engine: Fixed a puny memory leak.

SVN revision: 56503
This commit is contained in:
Tom Hacohen 2011-01-30 10:41:35 +00:00
parent f49c3bb8ad
commit a2fc127e8c
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ _evas_common_font_source_free(RGBA_Font_Source *fs)
FTLOCK();
FT_Done_Face(fs->ft.face);
FTUNLOCK();
#ifdef OT_SUPPORT
if (evas_common_font_ot_is_enabled())
{
evas_common_font_ot_unload_face(fs);
}
#endif
if (fs->name) eina_stringshare_del(fs->name);
free(fs);
}