diff options
author | Michael Zanetti <michael.zanetti@nokia.com> | 2012-05-10 14:37:54 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 11:18:13 +0200 |
commit | 2a6db81327331d4b76ff0125822eb2cdfca1ea24 (patch) | |
tree | c158d0214c3cecb23291be7a37498a0a9fa0a4cf /src/bluetooth/qbluetoothtransferreply_bluez.cpp | |
parent | c6e8086b5119f2bc33b6ce3790942bb0ea701cc2 (diff) |
prevent crash in case SFW connection breaks down and someone calls disconnect afterwards
Change-Id: I7c779454baf5dc3edff9398263e5a0af28899975
Reviewed-by: Christian Fetzer <christian.fetzer@nokia.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothtransferreply_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothtransferreply_bluez.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothtransferreply_bluez.cpp b/src/bluetooth/qbluetoothtransferreply_bluez.cpp index e113e5b6..7fffc481 100644 --- a/src/bluetooth/qbluetoothtransferreply_bluez.cpp +++ b/src/bluetooth/qbluetoothtransferreply_bluez.cpp @@ -337,7 +337,7 @@ void NokiaBtServiceConnection::disconnectFromObexServerService() { // Check if noone acquired the service in the meantime QMutexLocker m(&m_refCountMutex); - if (m_refCount == 0) { + if (m_refCount == 0 && m_obexService != NULL) { m_obexService->deleteLater(); m_obexService = NULL; } |