aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-main.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-01 15:25:24 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-02 15:13:58 +0100
commit28299b0ebcb47c43a2efcaac9dcb1c2a59d41323 (patch)
treea143108fe3543bac30d84d31d985bd93fe6b89ce /subsurface-mobile-main.cpp
parentd23bd46a1be2dfb25293639abcf06b5b4d4b94df (diff)
downloadsubsurface-28299b0ebcb47c43a2efcaac9dcb1c2a59d41323.tar.gz
Fix resource leaks in qt-ble.cpp
1) Destroy QLowEnergyService objects in destructor of BLEObject. 2) Let BLE object take ownership of the controller so that the latter can be destroyed in the destructor of the former. This introduces a certain ownership subtlety, which could be solved by allocating the controller object in the BLE object. But let's first do the less intrusive thing. 3) Destroy the BLE object for two error conditions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-mobile-main.cpp')
0 files changed, 0 insertions, 0 deletions