Fix klockwork memleak: If we allocate space for a Font Glyph (through

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>
This commit is contained in:
Chris Michael 2013-06-28 14:02:00 +01:00
parent 7e222b949c
commit dd136b82e2
1 changed files with 1 additions and 0 deletions

View 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);
}