From: Carsten Haitzler (Rasterman) Date: Wed, 8 Feb 2017 06:35:19 +0000 (+0900) Subject: evas image obj - remove logically dead code X-Git-Tag: upstream/1.20.0~2132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=144092b2fac39a8e70606130ab05afda7faa240a;p=platform%2Fupstream%2Fefl.git evas image obj - remove logically dead code coverity is right - it's logically dead code. fix CID 1367774 --- diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index 796d07d..fb878c0 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -879,7 +879,7 @@ _efl_canvas_image_internal_efl_file_save(const Eo *eo_obj, Evas_Image_Data *o, c int quality = 80, compress = 9, ok = 0; char *encoding = NULL; Image_Entry *ie; - Eina_Bool putback = EINA_FALSE, tofree = EINA_FALSE, tgv = EINA_FALSE, free_data = EINA_FALSE; + Eina_Bool putback = EINA_FALSE, tofree = EINA_FALSE, tgv = EINA_FALSE; Evas_Colorspace cspace = EVAS_COLORSPACE_ARGB8888; Evas_Colorspace want_cspace = EVAS_COLORSPACE_ARGB8888; int imagew, imageh; @@ -1034,8 +1034,6 @@ _efl_canvas_image_internal_efl_file_save(const Eo *eo_obj, Evas_Image_Data *o, c else if (putback) o->engine_data = ENFN->image_data_put(ENDT, pixels, data); - if (free_data) free(data); - free(encoding); return ok; }