evas: Evas_VG_Root_Node parent will be NULL during destructor.

This commit is contained in:
Cedric BAIL 2015-04-03 16:30:53 +02:00
parent 457e550616
commit 6a90d24aab
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ _evas_vg_root_node_changed(void *data, Eo *obj EINA_UNUSED,
{
Evas_VG_Root_Node_Data *pd = data;
evas_object_change(pd->parent, pd->data);
if (pd->parent) evas_object_change(pd->parent, pd->data);
return EINA_TRUE;
}
@ -60,7 +60,7 @@ _evas_vg_root_node_eo_base_parent_set(Eo *obj,
else
{
pd->parent = parent;
pd->data = eo_data_scope_get(parent, EVAS_OBJECT_CLASS);
pd->data = parent ? eo_data_scope_get(parent, EVAS_OBJECT_CLASS) : NULL;
}
}