input/qobuz: dispose the QobuzTrackRequest

This commit is contained in:
Max Kellermann 2018-01-21 19:59:17 +01:00
parent 036094799b
commit 2ce10f2fed
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ void
QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept
{
const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
try {
SetInput(OpenCurlInputStream(url.c_str(), {},
@ -116,6 +117,7 @@ void
QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept
{
const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
Failed(e);
}