mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 18:13:29 +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;
|
||||
|
||||
if (QCoreApplication::instance()) {
|
||||
_linkedData->deleteLater();
|
||||
if (_linkedData) {
|
||||
_linkedData->deleteLater();
|
||||
}
|
||||
} else {
|
||||
delete _linkedData;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue