Skip to content
Snippets Groups Projects
Commit 629a4d66 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Fix crash for a dangling pointer

Task-Number: BAUHAUS-574
Reviewed-by: kkoehne
parent 05f43cd6
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,12 @@ int NodeInstanceMetaObject::metaCall(QMetaObject::Call call, int id, void **a) ...@@ -62,10 +62,12 @@ int NodeInstanceMetaObject::metaCall(QMetaObject::Call call, int id, void **a)
} }
} }
} else { } else {
if (parent()) if (!QObjectPrivate::get(object())->wasDeleted) {
metaCallReturnValue = parent()->metaCall(call, id, a); if (parent())
else metaCallReturnValue = parent()->metaCall(call, id, a);
metaCallReturnValue = object()->qt_metacall(call, id, a); else
metaCallReturnValue = object()->qt_metacall(call, id, a);
}
if (call == QMetaObject::WriteProperty if (call == QMetaObject::WriteProperty
&& !property(id).hasNotifySignal() && !property(id).hasNotifySignal()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment