summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-06-28 14:02:00 +0100
committerChris Michael <cp.michael@samsung.com>2013-06-28 14:02:00 +0100
commitdd136b82e299a57f1e8d5d1bfa4f11f8857887a3 (patch)
treed575eb6ac27144a96261e69060b17913d452ca40 /src/lib/evas/common
parent7e222b949cc45c860d778080c5a0e02f8e00365d (diff)
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>
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_font_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_font_draw.c b/src/lib/evas/common/evas_font_draw.c
index aa334b88ff..482f48a0fc 100644
--- a/src/lib/evas/common/evas_font_draw.c
+++ b/src/lib/evas/common/evas_font_draw.c
@@ -338,6 +338,7 @@ evas_common_font_draw_prepare(Evas_Text_Props *text_props)
338 return; 338 return;
339 339
340error: 340error:
341 if (fg) free(fg);
341 eina_inarray_free(glyphs); 342 eina_inarray_free(glyphs);
342} 343}
343 344