eo: automatically cancel a future that is attached to an invalidated object.

This commit is contained in:
Cedric Bail 2018-03-19 16:38:07 -07:00
parent 08c9f99134
commit 21164b5a56
1 changed files with 1 additions and 0 deletions

View File

@ -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));