Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        sound.c 


Log Message:
Fix fd leak.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/sound.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- sound.c     30 Oct 2005 19:40:49 -0000      1.37
+++ sound.c     6 Nov 2005 13:39:58 -0000       1.38
@@ -333,7 +333,8 @@
 
    file = ConfigFileFind("sound.cfg", Mode.theme.path, 1);
    if (!file)
-      goto done;
+      return 0;
+
    fs = fopen(file, "r");
    Efree(file);
    if (!fs)
@@ -370,6 +371,8 @@
       ConfigAlertLoad(_("Sound"));
 
  done:
+   if (fs)
+      fclose(fs);
    return err;
 }
 




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to