only attempt to deleteLater on linkedData if it exists

This commit is contained in:
Stephen Birarda 2013-11-07 12:41:29 -08:00
parent fe962e6be1
commit 24c88512e2

View file

@ -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;
} }