Revert "eo - now ref and unref objects on each eo call to keep things safe"

This reverts commit 4044fe6504.
This commit is contained in:
Carsten Haitzler 2016-05-25 17:34:24 +09:00
parent fbed817fca
commit 11393cfee3
2 changed files with 2 additions and 17 deletions

View File

@ -560,11 +560,8 @@ typedef struct _Eo_Call_Cache
__FILE__, __LINE__)) return DefRet; \
_Eo_##Name##_func _func_ = (_Eo_##Name##_func) ___call.func; \
EAPI void _eo_real_ref(_Eo_Object *obj);
EAPI void _eo_real_unref(_Eo_Object *obj);
#define _EO_API_BEFORE_HOOK _eo_real_ref(___call.obj);
#define _EO_API_AFTER_HOOK _eo_real_unref(___call.obj);
#define _EO_API_BEFORE_HOOK
#define _EO_API_AFTER_HOOK
#define _EO_API_CALL_HOOK(x) x
// to define an EAPI function

View File

@ -1421,18 +1421,6 @@ eo_xunref(Eo *obj_id, const Eo *ref_obj_id)
_eo_unref(obj);
}
EAPI void
_eo_real_ref(_Eo_Object *obj)
{
if (obj) _eo_ref(obj);
}
EAPI void
_eo_real_unref(_Eo_Object *obj)
{
if (obj) _eo_unref(obj);
}
EAPI Eo *
eo_ref(const Eo *obj_id)
{