input/archive: close the archive file on error
Fixed memory leak in error handler.
This commit is contained in:
parent
81aa58efa8
commit
2234d491b7
1
NEWS
1
NEWS
@ -1,6 +1,7 @@
|
|||||||
ver 0.15.7 (2009/??/??)
|
ver 0.15.7 (2009/??/??)
|
||||||
* input:
|
* input:
|
||||||
- file: don't fall back to parent directory
|
- file: don't fall back to parent directory
|
||||||
|
- archive: fixed memory leak in error handler
|
||||||
* tags:
|
* tags:
|
||||||
- id3: fix ID3v1 charset conversion
|
- id3: fix ID3v1 charset conversion
|
||||||
* decoders:
|
* decoders:
|
||||||
|
@ -66,6 +66,7 @@ input_archive_open(struct input_stream *is, const char *pathname)
|
|||||||
|
|
||||||
if (!opened) {
|
if (!opened) {
|
||||||
g_warning("open inarchive file %s failed\n\n",filename);
|
g_warning("open inarchive file %s failed\n\n",filename);
|
||||||
|
arplug->close(file);
|
||||||
} else {
|
} else {
|
||||||
is->ready = true;
|
is->ready = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user