Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_object_main.c evas_object_smart.c 


Log Message:


add abort so u can trap etk badness

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_main.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- evas_object_main.c  13 Jul 2006 00:26:25 -0000      1.48
+++ evas_object_main.c  30 Jul 2006 14:30:24 -0000      1.49
@@ -27,7 +27,7 @@
 evas_object_free(Evas_Object *obj, int clean_layer)
 {
    int was_smart_child = 0;
-   
+
    evas_object_grabs_cleanup(obj);
    evas_object_intercept_cleanup(obj);
    if (obj->smart.parent) was_smart_child = 1;
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_smart.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- evas_object_smart.c 31 May 2006 18:33:45 -0000      1.22
+++ evas_object_smart.c 30 Jul 2006 14:30:24 -0000      1.23
@@ -132,7 +132,19 @@
    return;
    MAGIC_CHECK_END();
 
-   if (obj->smart.parent ==  smart_obj) return;
+   if (obj->delete_me)
+     {
+       printf("EVAS ERROR: Adding deleted object %p to smart obj %p\n", obj, 
smart_obj);
+       abort();
+       return;
+     }
+   if (smart_obj->delete_me)
+     {
+       printf("EVAS ERROR: Adding object %p to deleted smart obj %p\n", obj, 
smart_obj);
+       abort();
+       return;
+     }
+   if (obj->smart.parent == smart_obj) return;
    
    if (obj->smart.parent) evas_object_smart_member_del(obj);
    



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to