eo: Fix deadlock with shared objects
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 6 Oct 2016 02:55:03 +0000 (11:55 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 6 Oct 2016 03:24:59 +0000 (12:24 +0900)
The object pointer was passed to EO_OBJ_DONE, rather than its
eo id.

src/lib/eo/eo_base_class.c

index e05ffa6..d6db732 100644 (file)
@@ -603,7 +603,7 @@ _efl_object_finalized_get(Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED)
    Eina_Bool finalized;
    EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_FALSE);
    finalized = obj->finalized;
-   EO_OBJ_DONE(obj);
+   EO_OBJ_DONE(obj_id);
    return finalized;
 }