jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=69c595b5fdd07596fef4462b8a7e7b8efc03e12b
commit 69c595b5fdd07596fef4462b8a7e7b8efc03e12b Author: Jean-Philippe Andre <[email protected]> Date: Fri Dec 15 16:16:19 2017 +0900 eo: Fix crash with invalid objects Not a legacy fix as auto-unref is new in 1.21. --- src/lib/eo/eo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 32939afa50..d421c58bc8 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -744,8 +744,9 @@ _efl_object_op_api_id_get(const void *api_func, const Eo *eo_obj, const char *ap EO_OBJ_POINTER(eo_obj, obj); eina_log_print(_eo_log_dom, EINA_LOG_LEVEL_ERR, file, api_func_name, line, - "Unable to resolve op for api func %p for obj=%p (%s)", api_func, eo_obj, efl_class_name_get(eo_obj)); - if (EINA_UNLIKELY(obj->auto_unref)) + "Unable to resolve op for api func %p for obj=%p (%s)", + api_func, eo_obj, efl_class_name_get(eo_obj)); + if (EINA_UNLIKELY(obj && obj->auto_unref)) { if (obj->finalized && !(--obj->auto_unref)) efl_unref(eo_obj); --
