add abort so u can trap etk badness

SVN revision: 24316
This commit is contained in:
Carsten Haitzler 2006-07-30 14:30:24 +00:00
parent ce41b8e859
commit 996645a4d6
2 changed files with 14 additions and 2 deletions

View File

@ -27,7 +27,7 @@ void
evas_object_free(Evas_Object *obj, int clean_layer)
{
int was_smart_child = 0;
evas_object_grabs_cleanup(obj);
evas_object_intercept_cleanup(obj);
if (obj->smart.parent) was_smart_child = 1;

View File

@ -132,7 +132,19 @@ evas_object_smart_member_add(Evas_Object *obj, Evas_Object *smart_obj)
return;
MAGIC_CHECK_END();
if (obj->smart.parent == smart_obj) return;
if (obj->delete_me)
{
printf("EVAS ERROR: Adding deleted object %p to smart obj %p\n", obj, smart_obj);
abort();
return;
}
if (smart_obj->delete_me)
{
printf("EVAS ERROR: Adding object %p to deleted smart obj %p\n", obj, smart_obj);
abort();
return;
}
if (obj->smart.parent == smart_obj) return;
if (obj->smart.parent) evas_object_smart_member_del(obj);