forked from enlightenment/efl
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:
parent
3dad97ce32
commit
28cf881861
|
@ -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",
|
ERR("Circular dependency in the group '%s' : %s",
|
||||||
ed->group, depends_path);
|
ed->group, depends_path);
|
||||||
eina_array_free(part_array);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eina_array_free(part_array);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue