diff options
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 022c9e05..677c2347 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -44,6 +44,10 @@ QPDFObjectHandle::QPDFObjectHandle(QPDFObject* data) : void QPDFObjectHandle::releaseResolved() { + // Recursively break any resolved references to indirect objects. + // Do not cross over indirect object boundaries to avoid an + // infinite loop. This method may only be called during final + // destruction. See comments in QPDF::~QPDF(). if (isIndirect()) { if (this->obj.getPointer()) |