forked from enlightenment/efl
evas_object_grid: fix leaking of pointer
priv->children was leaked to a freed pointer here. This is now fixed.
This commit is contained in:
parent
260964dbdd
commit
509ad38083
|
@ -176,16 +176,14 @@ static void
|
|||
_evas_object_grid_smart_del(Evas_Object *o)
|
||||
{
|
||||
EVAS_OBJECT_GRID_DATA_GET(o, priv);
|
||||
Eina_List *l;
|
||||
|
||||
l = priv->children;
|
||||
while (l)
|
||||
while (priv->children)
|
||||
{
|
||||
Evas_Object_Grid_Option *opt = l->data;
|
||||
_evas_object_grid_child_disconnect(o, opt->obj);
|
||||
_evas_object_grid_option_del(opt->obj);
|
||||
free(opt);
|
||||
l = eina_list_remove_list(l, l);
|
||||
Evas_Object_Grid_Option *opt = priv->children->data;
|
||||
_evas_object_grid_child_disconnect(o, opt->obj);
|
||||
_evas_object_grid_option_del(opt->obj);
|
||||
free(opt);
|
||||
priv->children = eina_list_remove_list(priv->children, priv->children);
|
||||
}
|
||||
|
||||
_evas_object_grid_parent_sc->del(o);
|
||||
|
|
Loading…
Reference in New Issue