Fix klockwork memleak: If we allocate space for a Font Glyph (through
authorChris Michael <cp.michael@samsung.com>
Fri, 28 Jun 2013 13:02:00 +0000 (14:02 +0100)
committerChris Michael <cp.michael@samsung.com>
Fri, 28 Jun 2013 13:02:00 +0000 (14:02 +0100)
evas_common_font_int_cache_glyph_get), then we should free that
allocation when we have an error.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/common/evas_font_draw.c

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