Evas font: Fixed use-after-free.

This commit is contained in:
Tom Hacohen 2013-04-15 10:42:47 +01:00
parent ccea9eca41
commit 9e96e8f122
1 changed files with 1 additions and 1 deletions

View File

@ -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();