1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +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
parent 1e1902cddd
commit 8cc7321eb3

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.