1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 05:37:29 +02:00

Unbind from source if we are not responsible for it

This commit is contained in:
Uwe L. Korn
2013-06-28 13:27:08 +02:00
committed by Michael Zanetti
parent 1554b638f6
commit 15704d8fbf

View File

@@ -145,6 +145,8 @@ ControlConnection::setup()
} }
else 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 // Unlock before we delete ourselves
d->sourceLock.unlock(); d->sourceLock.unlock();
// There is already another ControlConnection in use, we are useless. // There is already another ControlConnection in use, we are useless.