Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_evas


Modified Files:
        ecore_evas.c 


Log Message:


on a NULl data - delete the old key and dont add any new one

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ecore_evas.c        15 Oct 2005 10:37:37 -0000      1.23
+++ ecore_evas.c        31 Oct 2005 06:21:40 -0000      1.24
@@ -159,9 +159,10 @@
      }
 
    if (!key) return;
-
+   
    ee->data = evas_hash_del(ee->data, key, NULL);
-   ee->data = evas_hash_add(ee->data, key, data);
+   if (data)
+     ee->data = evas_hash_add(ee->data, key, data);
 }
 
 #define IFC(_ee, _fn)  if (_ee->engine.func->_fn) {_ee->engine.func->_fn




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to