summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>2020-05-27 00:03:15 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-27 15:19:03 +0200
commit28cf881861e5627d8ba7ad608a47fd2b601d3455 (patch)
tree582924a0bf66f769099b4baa16e3a886e39cdabc
parent3dad97ce32f2ff8c3e29574c7ec6c01c6bc81e66 (diff)
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
-rw-r--r--src/lib/edje/edje_calc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index d07b5bf81f..93a99254bf 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -4057,8 +4057,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
4057 } 4057 }
4058 ERR("Circular dependency in the group '%s' : %s", 4058 ERR("Circular dependency in the group '%s' : %s",
4059 ed->group, depends_path); 4059 ed->group, depends_path);
4060 eina_array_free(part_array);
4061 } 4060 }
4061
4062 eina_array_free(part_array);
4062#endif 4063#endif
4063 return; 4064 return;
4064 } 4065 }