tasn pushed a commit to branch master.
commit 9e96e8f1224610ede6c7e8d61e0a96bd10b12dd8
Author: Tom Hacohen <[email protected]>
Date: Mon Apr 15 10:42:47 2013 +0100
Evas font: Fixed use-after-free.
---
src/lib/evas/common/evas_font_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/evas/common/evas_font_main.c
b/src/lib/evas/common/evas_font_main.c
index 401bb1b..ef1fb2b 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)
{
FT_Done_Glyph(fg->glyph);
FTUNLOCK();
- free(fg);
if (!fi->fash) fi->fash = _fash_gl_new();
if (fi->fash) _fash_gl_add(fi->fash, fg->index, (void *)(-1));
+ free(fg);
return EINA_FALSE;
}
FTUNLOCK();
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter