Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/efreet

Dir     : e17/libs/efreet/src/bin/compare


Modified Files:
        efreet_alloc.c 


Log Message:
Remove the icon cache.
This means that users of efreet_icon_list_find, efreet_icon_path_find and
efreet_icon_find must clean up after themselves!

===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/bin/compare/efreet_alloc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- efreet_alloc.c      3 Feb 2007 13:05:30 -0000       1.1
+++ efreet_alloc.c      26 Jul 2007 11:30:10 -0000      1.2
@@ -1,12 +1,13 @@
 #include <Efreet.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "comp.h"
 
 int
 main(int argc, char **argv)
 {
     int i = 0, k;
-    const char *path;
+    char *path;
 
     efreet_init();
 
@@ -16,6 +17,7 @@
         {
             path = efreet_icon_path_find(THEME, icons[i], SIZE);
 //            printf("%s: %s\n", icons[i], (path ? path : "NOT FOUND"));
+            if (path) free(path);
         }
     }
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to