Fix QPDFObjectHandle::disconnect (partially fixes #1011)

This commit is contained in:
m-holger 2023-07-24 18:51:30 +01:00
parent 37bc43b6dd
commit d531309cf9
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ QPDFObjectHandle::disconnect()
// Recursively remove association with any QPDF object. This method may only be called during
// final destruction. QPDF::~QPDF() calls it for indirect objects using the object pointer
// itself, so we don't do that here. Other objects call it through this method.
if (!isIndirect()) {
if (obj && !isIndirect()) {
this->obj->disconnect();
}
}