forked from enlightenment/efl
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>
This commit is contained in:
parent
6bd34e2ae9
commit
56d75b755f
|
@ -7383,7 +7383,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
|
|||
{ \
|
||||
ITEM_ADD(); \
|
||||
if (first_only) \
|
||||
return result; \
|
||||
goto end; \
|
||||
else \
|
||||
continue; \
|
||||
} \
|
||||
|
@ -7393,7 +7393,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
|
|||
{ \
|
||||
ITEM_ADD(); \
|
||||
if (first_only) \
|
||||
return result; \
|
||||
goto end; \
|
||||
else \
|
||||
continue; \
|
||||
} \
|
||||
|
@ -7420,6 +7420,7 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
|
|||
}
|
||||
#undef ITEM_ADD
|
||||
#undef FIND_IN_PART_DESCRIPTION
|
||||
end:
|
||||
eina_iterator_free(it);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue