forked from qt-creator/qt-creator
Fix crash for a dangling pointer
Task-Number: BAUHAUS-574
Reviewed-by: kkoehne
(cherry picked from commit 629a4d66c1
)
This commit is contained in:
@@ -62,10 +62,12 @@ int NodeInstanceMetaObject::metaCall(QMetaObject::Call call, int id, void **a)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (!QObjectPrivate::get(object())->wasDeleted) {
|
||||||
if (parent())
|
if (parent())
|
||||||
metaCallReturnValue = parent()->metaCall(call, id, a);
|
metaCallReturnValue = parent()->metaCall(call, id, a);
|
||||||
else
|
else
|
||||||
metaCallReturnValue = object()->qt_metacall(call, id, a);
|
metaCallReturnValue = object()->qt_metacall(call, id, a);
|
||||||
|
}
|
||||||
|
|
||||||
if (call == QMetaObject::WriteProperty
|
if (call == QMetaObject::WriteProperty
|
||||||
&& !property(id).hasNotifySignal()
|
&& !property(id).hasNotifySignal()
|
||||||
|
Reference in New Issue
Block a user