mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Merge pull request #1012 from m-holger/i1011
Fix QPDFObjectHandle::disconnect (partially fixes #1011)
This commit is contained in:
commit
c1afe9f83b
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user