From 264e25f391f83bcbeb60590f18ff96719b086454 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 7 Sep 2022 16:49:31 -0400 Subject: Clear owning QPDF information for all objects, not just indirect --- libqpdf/QPDF_Dictionary.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libqpdf/QPDF_Dictionary.cc') diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc index 41760993..00d9f098 100644 --- a/libqpdf/QPDF_Dictionary.cc +++ b/libqpdf/QPDF_Dictionary.cc @@ -21,6 +21,14 @@ QPDF_Dictionary::shallowCopy() return create(items); } +void +QPDF_Dictionary::reset() +{ + for (auto& iter: this->items) { + QPDFObjectHandle::Resetter::reset(iter.second); + } +} + std::string QPDF_Dictionary::unparse() { -- cgit v1.2.3-54-g00ecf