devilhorns pushed a commit to branch master.
commit dd136b82e299a57f1e8d5d1bfa4f11f8857887a3
Author: Chris Michael <[email protected]>
Date: Fri Jun 28 14:02:00 2013 +0100
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 <[email protected]>
---
src/lib/evas/common/evas_font_draw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/evas/common/evas_font_draw.c
b/src/lib/evas/common/evas_font_draw.c
index aa334b8..482f48a 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)
return;
error:
+ if (fg) free(fg);
eina_inarray_free(glyphs);
}
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev