diff options
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 6fb66d9c..022c9e05 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -41,6 +41,22 @@ QPDFObjectHandle::QPDFObjectHandle(QPDFObject* data) : { } +void +QPDFObjectHandle::releaseResolved() +{ + if (isIndirect()) + { + if (this->obj.getPointer()) + { + this->obj = 0; + } + } + else + { + QPDFObject::ObjAccessor::releaseResolved(this->obj.getPointer()); + } +} + bool QPDFObjectHandle::isInitialized() const { |