input/archive: close the archive file on error

Fixed memory leak in error handler.
This commit is contained in:
Max Kellermann 2009-12-15 19:31:50 +01:00
parent 81aa58efa8
commit 2234d491b7
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
ver 0.15.7 (2009/??/??)
* input:
- file: don't fall back to parent directory
- archive: fixed memory leak in error handler
* tags:
- id3: fix ID3v1 charset conversion
* decoders:

View File

@ -66,6 +66,7 @@ input_archive_open(struct input_stream *is, const char *pathname)
if (!opened) {
g_warning("open inarchive file %s failed\n\n",filename);
arplug->close(file);
} else {
is->ready = true;
}