From 86504ee2a778f4117875e4ba963891f896062e37 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 17 May 2010 21:49:35 +0200 Subject: close input file after finished writing vorbis tag --- plugins/vorbis/vorbis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3