vg_common_json: Fix a missing of free after using

Summary: iterator itr will leak by going out the function widthout freeing.

Test Plan: N/A

Reviewers: Hermet, smohanty, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10736
This commit is contained in:
junsu choi 2019-11-26 13:50:00 +09:00 committed by Hermet Park
parent f1275e86f4
commit 256c792837
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ _reset_vg_tree(Efl_VG *node)
Eina_Iterator *itr = efl_canvas_vg_container_children_get(node);
EINA_ITERATOR_FOREACH(itr, child)
_reset_vg_tree(child);
if (itr) eina_iterator_free(itr);
}
efl_gfx_entity_visible_set(node, EINA_FALSE);
}