From ffc27698dceca46f5c67a7c705d5db686734780a Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:41:35 +0000 Subject: [PATCH] Evas font-engine: Fixed a puny memory leak. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56503 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_load.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/engines/common/evas_font_load.c b/src/lib/engines/common/evas_font_load.c index 01ecdc9..bcfa4ac 100644 --- a/src/lib/engines/common/evas_font_load.c +++ b/src/lib/engines/common/evas_font_load.c @@ -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); } -- 2.7.4