allow object delfns to ref objects and defer deletion

SVN revision: 76222
This commit is contained in:
Mike Blumenkrantz 2012-09-06 06:56:06 +00:00
parent fb51746799
commit f6e3d4b08c
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ e_object_free(E_Object *obj)
{
E_OBJECT_CHECK(obj);
if (obj->free_att_func) obj->free_att_func(obj);
obj->free_att_func = NULL;
obj->walking_list++;
while (obj->del_fn_list)
{
@ -73,6 +74,7 @@ e_object_free(E_Object *obj)
free(dfn);
}
obj->walking_list--;
if (obj->references) return;
/*
* FIXME:
* although this is good - if during cleanup the cleanup func calls