fixed evas smart object refcounting

SVN revision: 8363
This commit is contained in:
tsauerbeck 2004-01-12 21:57:15 +00:00 committed by tsauerbeck
parent 1e0f9c8885
commit c8d152ef0a
2 changed files with 1 additions and 2 deletions

View File

@ -350,7 +350,6 @@ evas_object_smart_cleanup(Evas_Object *obj)
obj->smart.parent = NULL;
obj->smart.data = NULL;
obj->smart.smart = NULL;
if (s) evas_object_smart_unuse(s);
}
/* all nice and private */

View File

@ -147,5 +147,5 @@ void
evas_object_smart_unuse(Evas_Smart *s)
{
s->usage--;
if (s->delete_me) evas_smart_free(s);
if (!s->usage) evas_smart_free(s);
}