evas: fix compilation warning in evas_font_draw.

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
This commit is contained in:
Jean-Philippe Andre 2013-07-02 15:18:19 +09:00 committed by Cedric Bail
parent 22e79af097
commit bb4e7fb869
1 changed files with 6 additions and 3 deletions

View File

@ -259,7 +259,7 @@ EAPI void
evas_common_font_draw_prepare(Evas_Text_Props *text_props) evas_common_font_draw_prepare(Evas_Text_Props *text_props)
{ {
RGBA_Font_Int *fi; RGBA_Font_Int *fi;
RGBA_Font_Glyph *fg; RGBA_Font_Glyph *fg = NULL;
Eina_Inarray *glyphs; Eina_Inarray *glyphs;
size_t unit = 32; size_t unit = 32;
Eina_Bool reused_glyphs; Eina_Bool reused_glyphs;
@ -338,8 +338,11 @@ evas_common_font_draw_prepare(Evas_Text_Props *text_props)
return; return;
error: error:
if (fg->glyph_out) free(fg->glyph_out); if (fg)
if (fg) free(fg); {
if (fg->glyph_out) free(fg->glyph_out);
free(fg);
}
eina_inarray_free(glyphs); eina_inarray_free(glyphs);
} }