This lets us use eo_do and the such on deleted to be manually freed objects.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@71746
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
}
#endif
- if (!obj->manual_free) _eo_free(obj);
+ if (!obj->manual_free)
+ _eo_free(obj);
+ else
+ _eo_ref(obj); /* If we manual free, we keep a phantom ref. */
}
}
return;
}
- if (0 != obj->refcount)
+ if (!obj->del)
{
ERR("Tried deleting the object %p while still referenced(%d).", obj, eo_ref_get(obj));
return;