summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2015-01-14 14:56:55 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-14 14:57:02 +0100
commit56d75b755f6414952ee7235f5ee8a3d60b813be7 (patch)
tree791450e68f92c0f2d07000c9f72c834d4b861246 /src/lib/edje
parent6bd34e2ae9e222ee3e87ae4865281ace4a24871c (diff)
edje: Edje_Edit - fix memory leak in edje_edit_image_usage_list_get
Summary: freeing iterator when necessary @fix Reviewers: Hermet, seoz, cedric Reviewed By: cedric Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1868 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 3833645b52..03fc194bfc 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -7383,7 +7383,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
7383 { \ 7383 { \
7384 ITEM_ADD(); \ 7384 ITEM_ADD(); \
7385 if (first_only) \ 7385 if (first_only) \
7386 return result; \ 7386 goto end; \
7387 else \ 7387 else \
7388 continue; \ 7388 continue; \
7389 } \ 7389 } \
@@ -7393,7 +7393,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
7393 { \ 7393 { \
7394 ITEM_ADD(); \ 7394 ITEM_ADD(); \
7395 if (first_only) \ 7395 if (first_only) \
7396 return result; \ 7396 goto end; \
7397 else \ 7397 else \
7398 continue; \ 7398 continue; \
7399 } \ 7399 } \
@@ -7420,6 +7420,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
7420 } 7420 }
7421 #undef ITEM_ADD 7421 #undef ITEM_ADD
7422 #undef FIND_IN_PART_DESCRIPTION 7422 #undef FIND_IN_PART_DESCRIPTION
7423end:
7423 eina_iterator_free(it); 7424 eina_iterator_free(it);
7424 7425
7425 return result; 7426 return result;