summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-17 21:49:35 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-17 21:49:35 +0200
commit86504ee2a778f4117875e4ba963891f896062e37 (patch)
treed0b93d0b29416adf972f9392f44d03896fe193d5
parentd5eeb44a9d05a1b8072fc090fe07d7a13a8bfb06 (diff)
close input file after finished writing vorbis tag
-rw-r--r--plugins/vorbis/vorbis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 37ca2263..90eb7c01 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -593,13 +593,15 @@ cvorbis_write_metadata (DB_playItem_t *it) {
err = 0;
error:
+ if (fp) {
+ fclose (fp);
+ }
if (out) {
fclose (out);
}
if (state) {
vcedit_clear (state);
}
-
while (preserved_fields) {
struct field *next = preserved_fields->next;
free (preserved_fields);