diff options
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r-- | core/qt-ble.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 9ee5def51..1cbd57266 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -142,8 +142,7 @@ BLEObject::~BLEObject() { qDebug() << "Deleting BLE object"; - foreach (QLowEnergyService *service, services) - delete service; + qDeleteAll(services); delete controller; } |