From 8cc7321eb36502c7e08476e4b72d7145b6e87c42 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 28 Jun 2013 13:27:08 +0200 Subject: [PATCH] Unbind from source if we are not responsible for it --- src/libtomahawk/network/ControlConnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtomahawk/network/ControlConnection.cpp b/src/libtomahawk/network/ControlConnection.cpp index 36e701fb1..02272582d 100644 --- a/src/libtomahawk/network/ControlConnection.cpp +++ b/src/libtomahawk/network/ControlConnection.cpp @@ -145,6 +145,8 @@ ControlConnection::setup() } else { + // We are not responsible for this source anymore, so do not keep a reference. + d->source = Tomahawk::source_ptr(); // Unlock before we delete ourselves d->sourceLock.unlock(); // There is already another ControlConnection in use, we are useless.