Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_engines.c 


Log Message:
- don't leak the hash key on destroy
- rename var to not override outer variable name

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ewl_engines.c       15 Dec 2006 02:48:23 -0000      1.28
+++ ewl_engines.c       20 Dec 2006 19:52:42 -0000      1.29
@@ -40,6 +40,7 @@
        if (!ewl_engines)
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ecore_hash_set_free_key(ewl_engines, ECORE_FREE_CB(free));
        ecore_hash_set_free_value(ewl_engines, ewl_engines_cb_engine_free);
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
@@ -161,16 +162,16 @@
        dep_list = dependancies();
        if (dep_list)
        {
-               char *name;
+               char *dep_name;
 
                deps = ecore_dlist_new();
 
                ecore_list_goto_first(dep_list);
-               while ((name = ecore_list_next(dep_list)))
+               while ((dep_name = ecore_list_next(dep_list)))
                {
                        Ewl_Engine *parent;
 
-                       parent = ewl_engine_new(name);
+                       parent = ewl_engine_new(dep_name);
                        if (!parent) DRETURN_PTR(NULL, DLEVEL_STABLE);
 
                        ecore_dlist_append(deps, parent);



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