App: fixes #6840: Crash in ObjectIdentifier::resolveProperty

This commit is contained in:
wmayer
2022-05-06 20:34:08 +02:00
parent d926331e57
commit c960622b3d

View File

@@ -1170,7 +1170,7 @@ void Document::_checkTransaction(DocumentObject* pcDelObj, const Property *What,
return;
}
}
if(!pcDelObj)
if(!pcDelObj)
return;
// When the object is going to be deleted we have to check if it has already been added to
// the undo transactions
@@ -1647,6 +1647,7 @@ Document::~Document()
for (auto it = d->objectMap.begin(); it != d->objectMap.end(); ++it) {
it->second->setStatus(ObjectStatus::Destroy, true);
delete(it->second);
it->second = nullptr;
}
// Remark: The API of Py::Object has been changed to set whether the wrapper owns the passed