summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 16:38:07 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 16:38:07 -0700
commit21164b5a56f2ff0fbe8e60f85f7070212cbdfe38 (patch)
tree0858ff1b84eae79303d9f569697450319f082a3a /src/lib/eo/eo_base_class.c
parent08c9f99134102db1a54ce0761b8e175ffed2d4bd (diff)
eo: automatically cancel a future that is attached to an invalidated object.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c1
1 files changed, 1 insertions, 0 deletions
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)
1983 EINA_SAFETY_ON_NULL_GOTO(o, end); 1983 EINA_SAFETY_ON_NULL_GOTO(o, end);
1984 pd = efl_data_scope_get(o, EFL_OBJECT_CLASS); 1984 pd = efl_data_scope_get(o, EFL_OBJECT_CLASS);
1985 EINA_SAFETY_ON_NULL_GOTO(pd, end); 1985 EINA_SAFETY_ON_NULL_GOTO(pd, end);
1986 if (pd->invalidate) goto end;
1986 pending = _efl_pending_future_new(); 1987 pending = _efl_pending_future_new();
1987 EINA_SAFETY_ON_NULL_GOTO(pending, end); 1988 EINA_SAFETY_ON_NULL_GOTO(pending, end);
1988 memcpy(&pending->desc, &desc, sizeof(Efl_Future_Cb_Desc)); 1989 memcpy(&pending->desc, &desc, sizeof(Efl_Future_Cb_Desc));