Commit d531309cf97d417f20276691a0c66d2404a51651
1 parent
37bc43b6
Fix QPDFObjectHandle::disconnect (partially fixes #1011)
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/QPDFObjectHandle.cc
| ... | ... | @@ -231,7 +231,7 @@ QPDFObjectHandle::disconnect() |
| 231 | 231 | // Recursively remove association with any QPDF object. This method may only be called during |
| 232 | 232 | // final destruction. QPDF::~QPDF() calls it for indirect objects using the object pointer |
| 233 | 233 | // itself, so we don't do that here. Other objects call it through this method. |
| 234 | - if (!isIndirect()) { | |
| 234 | + if (obj && !isIndirect()) { | |
| 235 | 235 | this->obj->disconnect(); |
| 236 | 236 | } |
| 237 | 237 | } | ... | ... |