summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_main.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-04-15 10:42:47 +0100
committerTom Hacohen <tom@stosb.com>2013-04-15 10:42:58 +0100
commit9e96e8f1224610ede6c7e8d61e0a96bd10b12dd8 (patch)
tree0fa145c95e481b668e29e31ec3b432128ed49650 /src/lib/evas/common/evas_font_main.c
parentccea9eca4171d53d39a0355aec84c2f0608be725 (diff)
Evas font: Fixed use-after-free.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_font_main.c b/src/lib/evas/common/evas_font_main.c
index 401bb1b52b..ef1fb2b0c9 100644
--- a/src/lib/evas/common/evas_font_main.c
+++ b/src/lib/evas/common/evas_font_main.c
@@ -496,9 +496,9 @@ evas_common_font_int_cache_glyph_render(RGBA_Font_Glyph *fg)
496 { 496 {
497 FT_Done_Glyph(fg->glyph); 497 FT_Done_Glyph(fg->glyph);
498 FTUNLOCK(); 498 FTUNLOCK();
499 free(fg);
500 if (!fi->fash) fi->fash = _fash_gl_new(); 499 if (!fi->fash) fi->fash = _fash_gl_new();
501 if (fi->fash) _fash_gl_add(fi->fash, fg->index, (void *)(-1)); 500 if (fi->fash) _fash_gl_add(fi->fash, fg->index, (void *)(-1));
501 free(fg);
502 return EINA_FALSE; 502 return EINA_FALSE;
503 } 503 }
504 FTUNLOCK(); 504 FTUNLOCK();