summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:23:29 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commitca4b517414cb792ac6ef06962aa155db8d426677 (patch)
tree2b090d1f6b72898bc513e8ea01bd201914cf8df3 /src/lib/eio
parentf1b29fbbe71c81ebda166c7e1f38819f22ecb3c5 (diff)
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
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/efl_io_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c
index 54dc6a2882..b4ae262cae 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)
1039 _efl_io_model_efl_model_monitor_del(priv); 1039 _efl_io_model_efl_model_monitor_del(priv);
1040 1040
1041 // Unlink the object from the parent 1041 // Unlink the object from the parent
1042 if (priv->info) 1042 if (priv->info && priv->info->object)
1043 { 1043 {
1044 efl_wref_del(priv->info->object, &priv->info->object); 1044 efl_wref_del(priv->info->object, &priv->info->object);
1045 priv->info->object = NULL; 1045 priv->info->object = NULL;