efl/io_model: check for parent object existence before removing wref
Summary: if the wref automatically removes this pointer then there's no need to remove the wref on the pointer @fix Depends on D8973 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8974
This commit is contained in:
parent
f1b29fbbe7
commit
ca4b517414
|
@ -1039,7 +1039,7 @@ _efl_io_model_efl_object_invalidate(Eo *obj , Efl_Io_Model_Data *priv)
|
|||
_efl_io_model_efl_model_monitor_del(priv);
|
||||
|
||||
// Unlink the object from the parent
|
||||
if (priv->info)
|
||||
if (priv->info && priv->info->object)
|
||||
{
|
||||
efl_wref_del(priv->info->object, &priv->info->object);
|
||||
priv->info->object = NULL;
|
||||
|
|
Loading…
Reference in New Issue