cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ab18b01e1caf1166ced592613c7ea5711661322a

commit ab18b01e1caf1166ced592613c7ea5711661322a
Author: Cedric Bail <[email protected]>
Date:   Tue Oct 25 18:51:12 2016 -0700

    eo: do not track NULL future.
---
 src/lib/eo/eo_base_class.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index bc85105..c79d213 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -1755,7 +1755,11 @@ _efl_object_future_link_tracking_end(void *data, const 
Efl_Event *ev)
 EOLIAN static Eina_Bool
 _efl_object_future_link(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, Efl_Future 
*link)
 {
-   Efl_Object_Extension *ext = _efl_object_extension_need(pd);
+   Efl_Object_Extension *ext;
+
+   if (!link) return EINA_FALSE;
+
+   ext = _efl_object_extension_need(pd);
 
    ext->futures = eina_list_append(ext->futures, link);
    return !!efl_future_then(link, _efl_object_future_link_tracking_end, 
_efl_object_future_link_tracking_end, NULL, obj);

-- 


Reply via email to