Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_object_main.c 


Log Message:
set the name to NULL on _del instead of _free

Since free can be delayed, if you deleted a named object, created a new one and 
set it to the same name, the hash could still point to the old object.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_main.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- evas_object_main.c  19 May 2006 07:56:53 -0000      1.47
+++ evas_object_main.c  13 Jul 2006 00:26:25 -0000      1.48
@@ -33,7 +33,6 @@
    if (obj->smart.parent) was_smart_child = 1;
    evas_object_smart_cleanup(obj);
    obj->func->free(obj);
-   if (obj->name) evas_object_name_set(obj, NULL);
    if (!was_smart_child) evas_object_release(obj, clean_layer);
    if (obj->clip.clipees)
      evas_list_free(obj->clip.clipees);
@@ -416,6 +415,8 @@
    return;
    MAGIC_CHECK_END();
    if (obj->delete_me) return;
+
+   if (obj->name) evas_object_name_set(obj, NULL);
    if (!obj->layer)
      {
        evas_object_free(obj, 1);




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to