diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-07-24 21:01:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:01:01 +0200 |
commit | c1afe9f83bee238cce3cd68619d22c21bd7541a7 (patch) | |
tree | f0c3cd540cda190d4f5697fe5da079df3f5a9087 | |
parent | 37bc43b6dd28cf20e99479f9b041238859c0ca68 (diff) | |
parent | d531309cf97d417f20276691a0c66d2404a51651 (diff) | |
download | qpdf-c1afe9f83bee238cce3cd68619d22c21bd7541a7.tar.zst |
Merge pull request #1012 from m-holger/i1011
Fix QPDFObjectHandle::disconnect (partially fixes #1011)
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 3ce748b0..17894560 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -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(); } } |