Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c 


Log Message:


might want to free strings that are strdup'd

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -3 -r1.179 -r1.180
--- e_apps.c    9 Sep 2006 07:00:14 -0000       1.179
+++ e_apps.c    10 Sep 2006 10:34:17 -0000      1.180
@@ -1658,12 +1658,15 @@
               }
             else if (a->icon_class)   /* If that fails, then this might be an 
FDO icon. */
               {
-                 char *v;
+                 char *v = NULL;
                  
                  /* FIXME: Use a real icon size. */
-                 v = (char *) ecore_desktop_icon_find(a->icon_class, NULL, 
e_config->icon_theme);
+                 v = (char *)ecore_desktop_icon_find(a->icon_class, NULL, 
e_config->icon_theme);
                  if (v)
-                   a->icon_path = evas_stringshare_add(v);
+                   {
+                      a->icon_path = evas_stringshare_add(v);
+                      free(v);
+                   }
               }
             
             if (a->icon_path)



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