Fixed crash where a device was destroyed but links tried to use it.
This commit is contained in:
parent
9c736583e2
commit
963a15bd08
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue