forked from enlightenment/efl
evas - print ERR if the object coundn't be deleted when it's ref count is more than 0.
In this case, evas_free() won't be exit because of the infinite loop.
This commit is contained in:
parent
836ae6bb64
commit
46ba77d4f4
|
@ -216,7 +216,11 @@ _destructor(Eo *eo_e, void *_pd, va_list *list EINA_UNUSED)
|
|||
EINA_INLIST_FOREACH(lay->objects, o)
|
||||
{
|
||||
if (!o->delete_me)
|
||||
del = EINA_TRUE;
|
||||
{
|
||||
if (o->ref > 0)
|
||||
ERR("obj(%p, %s) ref count(%d) is more than 0. This object couldn't be deleted", o, o->type, o->ref);
|
||||
del = EINA_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue