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:
ChunEon Park 2013-07-11 14:03:29 +09:00
parent 836ae6bb64
commit 46ba77d4f4
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
}
}
}