changeset 4093:1198b6911ca4

Close file handles when no codec can be found for them. (Bugzilla #15).
author Jussi Judin <jjudin+audacious@iki.fi>
date Wed, 19 Dec 2007 00:35:24 -0600
parents e637466e4512
children cc8e81a84fa6
files src/audacious/input.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Thu Dec 06 05:29:41 2007 +0300
+++ b/src/audacious/input.c	Wed Dec 19 00:35:24 2007 -0600
@@ -516,6 +516,8 @@
             }
         }
 
+        g_free(filename_proxy);
+        vfs_fclose(fd);
         return NULL; // no plugin found.
     }