summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-06-24 14:28:27 +0200
committerBoris Faure <billiob@gmail.com>2013-06-24 14:52:54 +0200
commit1f298139d866ab8f5b77de300e7c356fca923e33 (patch)
treea58317c5112690a9d325bef81c923faf6dd44d56
parent0ae72828693817b507da10d7d199aa6ba250d6d8 (diff)
evas: fix crash after font rehint
-rw-r--r--src/lib/evas/common/evas_font_load.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/evas/common/evas_font_load.c b/src/lib/evas/common/evas_font_load.c
index f12db1eb45..5ede331f2d 100644
--- a/src/lib/evas/common/evas_font_load.c
+++ b/src/lib/evas/common/evas_font_load.c
@@ -682,15 +682,6 @@ evas_common_font_free(RGBA_Font *fn)
682 free(fn); 682 free(fn);
683} 683}
684 684
685static void
686_evas_common_font_rehint(RGBA_Font_Int *fi, Font_Hint_Flags hinting)
687{
688 if (fi->fash)
689 fi->fash->freeme(fi->fash);
690 fi->fash = NULL;
691 fi->hinting = hinting;
692}
693
694EAPI void 685EAPI void
695evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting) 686evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
696{ 687{
@@ -702,7 +693,7 @@ evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
702 EINA_LIST_FOREACH(fn->fonts, l, fi) 693 EINA_LIST_FOREACH(fn->fonts, l, fi)
703 { 694 {
704 if (fi->hinting != fn->hinting) 695 if (fi->hinting != fn->hinting)
705 _evas_common_font_rehint(fi, fn->hinting); 696 _evas_common_font_int_clear(fi);
706 fi->hinting = fn->hinting; 697 fi->hinting = fn->hinting;
707 } 698 }
708} 699}