edje_cc: fix a memory leak issue when edje_cc writes images 25/156025/2
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 17 Oct 2017 04:07:03 +0000 (13:07 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 17 Oct 2017 05:37:10 +0000 (05:37 +0000)
commite3b16bfb6c20663f5cfcc97b2a87520161a4df88
tree0f6114d928a306c3bbb9ae02d4fdb903e3cb5a46
parent1b3befc0905ee67cd0482769c26d11dab090e50d
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>
Change-Id: I7d82df3258c227c9880fac6d81199782f45bc436
src/bin/edje/edje_cc_out.c