Commit 2ce10f2f authored by Max Kellermann's avatar Max Kellermann

input/qobuz: dispose the QobuzTrackRequest

parent 03609479
...@@ -103,6 +103,7 @@ void ...@@ -103,6 +103,7 @@ void
QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept
{ {
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
try { try {
SetInput(OpenCurlInputStream(url.c_str(), {}, SetInput(OpenCurlInputStream(url.c_str(), {},
...@@ -116,6 +117,7 @@ void ...@@ -116,6 +117,7 @@ void
QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept
{ {
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
Failed(e); Failed(e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment