summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
126684b)
If an object is manually freed it was possible to ref/unref it so it'll
try to call the destructor again.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@71890
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
if (--(obj->refcount) == 0)
{
{
if (--(obj->refcount) == 0)
{
+ if (obj->del)
+ {
+ ERR("Object %p already deleted.", obj);
+ return;
+ }
+
_eo_del_internal(obj);
#ifndef NDEBUG
_eo_del_internal(obj);
#ifndef NDEBUG
eo_manual_free(obj);
eo_unref(obj);
eo_manual_free(obj);
eo_unref(obj);
+ obj = eo_add(klass, NULL);
+ fail_if(!obj);
+ eo_manual_free_set(obj, EINA_TRUE);
+ eo_unref(obj);
+ eo_ref(obj);
+ eo_unref(obj);
+ eo_unref(obj);
+ eo_manual_free(obj);
+
eo_shutdown();
}
END_TEST
eo_shutdown();
}
END_TEST