devilhorns pushed a commit to branch master.

commit 694d1600e8620693dd8b1ca467d0de7dbe5150ac
Author: Chris Michael <[email protected]>
Date:   Fri Jun 28 14:13:09 2013 +0100

    We should free glyph_out also (as that gets malloc'd too) on 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 482f48a..cea367a 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->glyph_out) free(fg->glyph_out);
    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

Reply via email to