forked from enlightenment/efl
Revert "eo - now ref and unref objects on each eo call to keep things safe"
This reverts commit 4044fe6504
.
This commit is contained in:
parent
fbed817fca
commit
11393cfee3
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue