changeset 808:7a1a46811a45 trunk

[svn] - fix a FD leak here
author nenolod
date Wed, 08 Mar 2006 10:11:37 -0800
parents df3412dc33c4
children 79da0e6ed790
files Plugins/Input/sexypsf/xmms.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/sexypsf/xmms.c	Wed Mar 08 06:57:02 2006 -0800
+++ b/Plugins/Input/sexypsf/xmms.c	Wed Mar 08 10:11:37 2006 -0800
@@ -47,12 +47,13 @@
 
 
 InputPlugin *get_iplugin_info(void)
-      {
-         sexypsf_ip.description = "sexyPSF PSF1 Player 0.4.8";
-         return &sexypsf_ip;
-      }
+{
+        sexypsf_ip.description = "sexyPSF PSF1 Player 0.4.8";
+        return &sexypsf_ip;
+}
 
-static int is_our_file(gchar *filename) {
+static int is_our_file(gchar *filename)
+{
 	VFSFile *file;
 	gchar magic[4];
 	
@@ -73,6 +74,9 @@
 			return 1;
 		}
 	}
+
+	vfs_fclose(file);
+
 	return 0;
 }