summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-07-02 15:18:19 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-02 16:58:10 +0900
commitbb4e7fb86984457c3df0cd7a7fb4c9d6e17e3b92 (patch)
tree9a71a4421c69a192dc0b64f989e0a09adf820654 /src/lib/evas/common
parent22e79af0977ccdcbfa30c7e5425d12962baef61c (diff)
evas: fix compilation warning in evas_font_draw.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_font_draw.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_font_draw.c b/src/lib/evas/common/evas_font_draw.c
index cea367a0af..5b8423db83 100644
--- a/src/lib/evas/common/evas_font_draw.c
+++ b/src/lib/evas/common/evas_font_draw.c
@@ -259,7 +259,7 @@ EAPI void
259evas_common_font_draw_prepare(Evas_Text_Props *text_props) 259evas_common_font_draw_prepare(Evas_Text_Props *text_props)
260{ 260{
261 RGBA_Font_Int *fi; 261 RGBA_Font_Int *fi;
262 RGBA_Font_Glyph *fg; 262 RGBA_Font_Glyph *fg = NULL;
263 Eina_Inarray *glyphs; 263 Eina_Inarray *glyphs;
264 size_t unit = 32; 264 size_t unit = 32;
265 Eina_Bool reused_glyphs; 265 Eina_Bool reused_glyphs;
@@ -338,8 +338,11 @@ evas_common_font_draw_prepare(Evas_Text_Props *text_props)
338 return; 338 return;
339 339
340error: 340error:
341 if (fg->glyph_out) free(fg->glyph_out); 341 if (fg)
342 if (fg) free(fg); 342 {
343 if (fg->glyph_out) free(fg->glyph_out);
344 free(fg);
345 }
343 eina_inarray_free(glyphs); 346 eina_inarray_free(glyphs);
344} 347}
345 348