Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_hash.c 


Log Message:


fix hash calls, fix object leak. :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/data/evas_hash.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evas_hash.c 16 Oct 2005 09:34:35 -0000      1.13
+++ evas_hash.c 31 Oct 2005 07:06:52 -0000      1.14
@@ -164,8 +164,8 @@
    for (l = hash->buckets[hash_num]; l; l = l->next)
      {
        el = (Evas_Hash_El *)l;
-       if ((((el->key) && (key) && (!strcmp(el->key, key))) ||
-            ((!el->key) && (!key))) && (el->data == data))
+       if (((el->key) && (key) && (!strcmp(el->key, key))) ||
+           ((!key) && (el->data == data)))
          {
             hash->buckets[hash_num] = 
evas_object_list_remove(hash->buckets[hash_num], el);
             if (el->key) free(el->key);
@@ -240,8 +240,7 @@
    for (l = hash->buckets[hash_num]; l; l = l->next)
      {
        el = (Evas_Hash_El *)l;
-       if (((el->key) && (key) && (!strcmp(el->key, key))) ||
-           ((!el->key) && (!key)))
+       if ((el->key) && (key) && (!strcmp(el->key, key)))
          {
             void *old_data;
             




-------------------------------------------------------
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