edje_cc: fix a memory leak issue when edje_cc writes images
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 13 Oct 2017 18:55:02 +0000 (11:55 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Fri, 13 Oct 2017 18:55:06 +0000 (11:55 -0700)
commit5a24f1404a2af4437f4002f326bfa15f24332fc3
tree31711f4f46255d6776e274a45ce4843e1799a1fd
parent1f6d3b40e4e5229a83bcf6dd44c3f5c47679609f
edje_cc: fix a memory leak issue when edje_cc writes images

Summary:
If there is no given pathes for image files as parameter of edje_cc,
"img_dirs" will be NULL. Then, a local variable "load_err" is always
EVAS_LOAD_ERROR_NONE. Because of this, the "if" condition just after
EINA_LIST_FOREACH() will fail. It causes memory leak from "iw".
@fix

Test Plan: N/A

Reviewers: raster, cedric, jpeg, woohyun

Differential Revision: https://phab.enlightenment.org/D5285

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/bin/edje/edje_cc_out.c