From e7f96a971d3f4a10055f8191b70653826ebc71cf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 29 May 2019 09:23:29 -0400 Subject: [PATCH] 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 54dc6a2..b4ae262 100644 --- a/src/lib/eio/efl_io_model.c +++ b/src/lib/eio/efl_io_model.c @@ -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; -- 2.7.4