Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_desktop


Modified Files:
        ecore_desktop_paths.c 


Log Message:
Plug memleak.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop_paths.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- ecore_desktop_paths.c       23 Sep 2006 09:59:42 -0000      1.32
+++ ecore_desktop_paths.c       24 Sep 2006 12:21:44 -0000      1.33
@@ -720,9 +720,12 @@
                       if ((dir_func) && (dir_func(data, info_text)))
                           break;
                       if (sub != 0)
-                        fpath =
-                           ecore_desktop_paths_recursive_search(info_text, 
file, sub,
-                                                                dir_func, 
func, data);
+                        {
+                           if (fpath) free(fpath);
+                           fpath =
+                              ecore_desktop_paths_recursive_search(info_text, 
file, sub,
+                                                                   dir_func, 
func, data);
+                        }
                    }
               }
             else



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