We should free glyph_out also (as that gets malloc'd too) on error.
authorChris Michael <cp.michael@samsung.com>
Fri, 28 Jun 2013 13:13:09 +0000 (14:13 +0100)
committerChris Michael <cp.michael@samsung.com>
Fri, 28 Jun 2013 13:13:09 +0000 (14:13 +0100)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/common/evas_font_draw.c

index 482f48a..cea367a 100644 (file)
@@ -338,6 +338,7 @@ evas_common_font_draw_prepare(Evas_Text_Props *text_props)
    return;
 
 error:
+   if (fg->glyph_out) free(fg->glyph_out);
    if (fg) free(fg);
    eina_inarray_free(glyphs);
 }