slight cleanups

SVN revision: 26615
This commit is contained in:
Carsten Haitzler 2006-10-15 14:39:16 +00:00
parent a25a94c23a
commit 9604530f2f
2 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,8 @@ evas_layer_pre_free(Evas_Layer *lay)
Evas_Object *obj;
obj = (Evas_Object *)l;
if (!obj->smart.parent) evas_object_del(obj);
if ((!obj->smart.parent) && (!obj->delete_me))
evas_object_del(obj);
}
}

View File

@ -426,6 +426,7 @@ evas_object_del(Evas_Object *obj)
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
if (obj->delete_me) return;
if (obj->name) evas_object_name_set(obj, NULL);