zmike pushed a commit to branch efl-1.22. http://git.enlightenment.org/core/efl.git/commit/?id=a4ca4573147bea343662017b664dd441f0bae390
commit a4ca4573147bea343662017b664dd441f0bae390 Author: Mike Blumenkrantz <[email protected]> Date: Wed May 29 09:23:29 2019 -0400 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 --- src/lib/eio/efl_io_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c index 185af29061..3383aac058 100644 --- a/src/lib/eio/efl_io_model.c +++ b/src/lib/eio/efl_io_model.c @@ -1045,7 +1045,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; --
