forked from enlightenment/efl
Eobj: Fixed a possible inconsistency in constructor error detection.
SVN revision: 70146
This commit is contained in:
parent
697c58026f
commit
de70c853ea
|
@ -713,7 +713,7 @@ eobj_add(const Eobj_Class *klass, Eobj *parent)
|
||||||
|
|
||||||
_eobj_kls_itr_init(obj, EOBJ_NOOP);
|
_eobj_kls_itr_init(obj, EOBJ_NOOP);
|
||||||
eobj_class_constructor(obj, klass);
|
eobj_class_constructor(obj, klass);
|
||||||
if (eobj_generic_data_get(obj, CONSTRUCT_ERROR_KEY))
|
if (eobj_constructor_error_get(obj))
|
||||||
{
|
{
|
||||||
ERR("Type '%s' - One of the object constructors have failed.", klass->desc->name);
|
ERR("Type '%s' - One of the object constructors have failed.", klass->desc->name);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -748,7 +748,7 @@ eobj_unref(Eobj *obj)
|
||||||
const Eobj_Class *klass = eobj_class_get(obj);
|
const Eobj_Class *klass = eobj_class_get(obj);
|
||||||
_eobj_kls_itr_init(obj, EOBJ_NOOP);
|
_eobj_kls_itr_init(obj, EOBJ_NOOP);
|
||||||
eobj_class_destructor(obj, klass);
|
eobj_class_destructor(obj, klass);
|
||||||
if (eobj_generic_data_get(obj, CONSTRUCT_ERROR_KEY))
|
if (eobj_constructor_error_get(obj))
|
||||||
{
|
{
|
||||||
ERR("Type '%s' - One of the object destructors have failed.", klass->desc->name);
|
ERR("Type '%s' - One of the object destructors have failed.", klass->desc->name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue