edje: fix memory leak in edje part recalculation.

Allocated part_array is only freed when _circular_dependency_find() is successful. It is not freed in other cases.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11886
This commit is contained in:
Myoungwoon Roy, Kim 2020-05-27 00:03:15 +00:00 committed by Stefan Schmidt
parent 3dad97ce32
commit 28cf881861
1 changed files with 2 additions and 1 deletions

View File

@ -4057,8 +4057,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
}
ERR("Circular dependency in the group '%s' : %s",
ed->group, depends_path);
eina_array_free(part_array);
}
eina_array_free(part_array);
#endif
return;
}