mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:38:02 +02:00
only attempt to deleteLater on linkedData if it exists
This commit is contained in:
parent
fe962e6be1
commit
24c88512e2
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ Node::~Node() {
|
||||||
delete _localSocket;
|
delete _localSocket;
|
||||||
|
|
||||||
if (QCoreApplication::instance()) {
|
if (QCoreApplication::instance()) {
|
||||||
_linkedData->deleteLater();
|
if (_linkedData) {
|
||||||
|
_linkedData->deleteLater();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
delete _linkedData;
|
delete _linkedData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue