From ec2a2ebe970643fac172c4be52e79d3db8a24d97 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Mon, 19 Mar 2018 16:38:07 -0700 Subject: [PATCH] eo: automatically cancel a future that is attached to an invalidated object. --- src/lib/eo/eo_base_class.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 5fd47c4..872ae3c 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -1983,6 +1983,7 @@ efl_future_cb_from_desc(Eo *o, const Efl_Future_Cb_Desc desc) EINA_SAFETY_ON_NULL_GOTO(o, end); pd = efl_data_scope_get(o, EFL_OBJECT_CLASS); EINA_SAFETY_ON_NULL_GOTO(pd, end); + if (pd->invalidate) goto end; pending = _efl_pending_future_new(); EINA_SAFETY_ON_NULL_GOTO(pending, end); memcpy(&pending->desc, &desc, sizeof(Efl_Future_Cb_Desc)); -- 2.7.4