diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-06-06 15:32:08 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-06-06 15:32:08 +0200 |
commit | 9496b2cb20bfd0551e9510b6ccb41ca950d2c8ee (patch) | |
tree | d4dd988984a8730331087b8b7e7afc513aeb2164 /libqpdf/QPDF_Dictionary.cc | |
parent | 64dc738859bac0dd71a3b0e61ba2d2c171d9eecd (diff) | |
download | qpdf-9496b2cb20bfd0551e9510b6ccb41ca950d2c8ee.tar.zst |
fix memory leak
git-svn-id: svn+q:///qpdf/trunk@976 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDF_Dictionary.cc')
-rw-r--r-- | libqpdf/QPDF_Dictionary.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc index 36c4590d..ccaab4a8 100644 --- a/libqpdf/QPDF_Dictionary.cc +++ b/libqpdf/QPDF_Dictionary.cc @@ -13,6 +13,17 @@ QPDF_Dictionary::~QPDF_Dictionary() { } +void +QPDF_Dictionary::releaseResolved() +{ + for (std::map<std::string, QPDFObjectHandle>::iterator iter = + this->items.begin(); + iter != this->items.end(); ++iter) + { + QPDFObjectHandle::ReleaseResolver::releaseResolved((*iter).second); + } +} + std::string QPDF_Dictionary::unparse() { |