From 963a15bd0889eedb0705c281798b3aacb26dc63f Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 5 Jul 2016 12:42:57 +0200 Subject: [PATCH] Fixed crash where a device was destroyed but links tried to use it. --- core/device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/device.cpp b/core/device.cpp index 059abb223..a68682249 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -88,6 +88,8 @@ Device::Device(QObject* parent, const NetworkPackage& identityPackage, DeviceLin Device::~Device() { + qDeleteAll(m_deviceLinks); + m_deviceLinks.clear(); } bool Device::hasPlugin(const QString& name) const