Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/efreet

Dir     : e17/libs/efreet/src/bin


Modified Files:
        ef_utils.c 


Log Message:
Memory management

===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/bin/ef_utils.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ef_utils.c  25 Mar 2007 12:57:48 -0000      1.4
+++ ef_utils.c  25 Mar 2007 13:10:09 -0000      1.5
@@ -6,23 +6,20 @@
 ef_cb_utils(void)
 {
     Efreet_Desktop *desktop;
-    char *tmp;
+    char *tmp1;
+    const char *tmp2;
 
     printf("\n");
-    tmp = efreet_util_path_in_default("applications",
+    tmp1 = efreet_util_path_in_default("applications",
             "/usr/share/applications/test.desktop");
-    if (tmp)
+    if (tmp1)
     {
-        printf("%s\n", tmp);
-        free(tmp);
+        printf("%s\n", tmp1);
+        free(tmp1);
     }
 
-    tmp = 
efreet_util_path_to_file_id("/usr/share/applications/this/tmp/test.desktop");
-    if (tmp)
-    {
-        printf("%s\n", tmp);
-        free(tmp);
-    }
+    tmp2 = 
efreet_util_path_to_file_id("/usr/share/applications/this/tmp/test.desktop");
+    if (tmp2) printf("%s\n", tmp2);
 
     desktop = efreet_util_desktop_file_id_find("kde-kresources.desktop");
     printf("kde-kresources.desktop: %p\n", desktop);



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