summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp3
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;
}