diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-06-06 20:03:21 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-06-06 20:03:21 +0200 |
commit | 6755a86734176caa1a3c38ad6db5bc3a01be8505 (patch) | |
tree | 08e1c6e0a4e1e142894806f4966f8e14a6e05c36 /libqpdf/QPDFObjectHandle.cc | |
parent | 21753001b701ed2d3f48f73c1a2733b3a337fc99 (diff) | |
download | qpdf-6755a86734176caa1a3c38ad6db5bc3a01be8505.tar.zst |
comment on memory leak fix
git-svn-id: svn+q:///qpdf/trunk@979 71b93d88-0707-0410-a8cf-f5a4172ac649
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()) |