evas: fix crash after font rehint
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 24 Jun 2013 12:28:27 +0000 (14:28 +0200)
committerBoris Faure <billiob@gmail.com>
Mon, 24 Jun 2013 12:52:54 +0000 (14:52 +0200)
src/lib/evas/common/evas_font_load.c

index f12db1e..5ede331 100644 (file)
@@ -682,15 +682,6 @@ evas_common_font_free(RGBA_Font *fn)
    free(fn);
 }
 
-static void
-_evas_common_font_rehint(RGBA_Font_Int *fi, Font_Hint_Flags hinting)
-{
-   if (fi->fash)
-     fi->fash->freeme(fi->fash);
-   fi->fash = NULL;
-   fi->hinting = hinting;
-}
-
 EAPI void
 evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
 {
@@ -702,7 +693,7 @@ evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
    EINA_LIST_FOREACH(fn->fonts, l, fi)
      {
         if (fi->hinting != fn->hinting)
-          _evas_common_font_rehint(fi, fn->hinting);
+          _evas_common_font_int_clear(fi);
         fi->hinting = fn->hinting;
      }
 }