decoder/Thread: delete the InputStream on error

Fixes memory leak after stream failure.  See
https://bugs.musicpd.org/view.php?id=4562
This commit is contained in:
Max Kellermann
2016-08-05 18:15:30 +02:00
parent 588303b78d
commit d042ab87da
2 changed files with 2 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ decoder_input_stream_open(DecoderControl &dc, const char *uri)
if (!is->Check(error)) {
dc.Unlock();
delete is;
LogError(error);
return nullptr;