Fixed crash where a device was destroyed but links tried to use it.

This commit is contained in:
Albert Vaca 2016-07-05 12:42:57 +02:00
parent 9c736583e2
commit 963a15bd08

View file

@ -88,6 +88,8 @@ Device::Device(QObject* parent, const NetworkPackage& identityPackage, DeviceLin
Device::~Device() Device::~Device()
{ {
qDeleteAll(m_deviceLinks);
m_deviceLinks.clear();
} }
bool Device::hasPlugin(const QString& name) const bool Device::hasPlugin(const QString& name) const