summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_font_dir.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-11-26 20:32:42 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-11-26 20:32:42 +0900
commitbff48f92a3de2f92b81f7cc45f1c32f57e34dca6 (patch)
treeb62b080fb746eba4c013d479d91c3deff2fa6102 /src/lib/evas/canvas/evas_font_dir.c
parentc5af1a7305df0878ae754f156dfb8b8686aa6a9b (diff)
evas - fix the memory corruption introduced by evas fonts_zero
Diffstat (limited to 'src/lib/evas/canvas/evas_font_dir.c')
-rw-r--r--src/lib/evas/canvas/evas_font_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c
index 383082ea58..cbe9605ab5 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -491,7 +491,7 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
491#endif 491#endif
492 492
493 Evas_Font_Set *font = NULL; 493 Evas_Font_Set *font = NULL;
494 Eina_List *fonts, *l; 494 Eina_List *fonts, *l, *l_next;
495 Fndat *fd; 495 Fndat *fd;
496#ifdef HAVE_FONTCONFIG 496#ifdef HAVE_FONTCONFIG
497 Fndat *found_fd = NULL; 497 Fndat *found_fd = NULL;
@@ -541,7 +541,7 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
541 } 541 }
542#endif 542#endif
543 543
544 EINA_LIST_FOREACH(fonts_zero, l, fd) 544 EINA_LIST_FOREACH_SAFE(fonts_zero, l, l_next, fd)
545 { 545 {
546 if (!evas_font_desc_cmp(fdesc, fd->fdesc)) 546 if (!evas_font_desc_cmp(fdesc, fd->fdesc))
547 { 547 {