summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-26 21:19:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-26 21:21:13 +0000
commit0a5f97f2985ec8e51910770d1748203cd4cd49c7 (patch)
tree7841ffbdde5f785ceafd1ca85310c61ea558ee46 /hwpfilter
parent19403aef11a536e2ecb5589b87a94d3a345512ea (diff)
ofz#691 leak of emblist data
Change-Id: Ic4231b93fafe73bf87995f226def64f7c9e131c3
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpfile.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 060312a1a0ea..5f6fe55b1660 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -74,11 +74,13 @@ HWPFile::~HWPFile()
for (; tbl != tables.end(); ++tbl)
delete *tbl;
- std::list < HyperText* >::iterator hyp = hyperlist.begin();
+ std::list<EmPicture*>::iterator emb = emblist.begin();
+ for (; emb != emblist.end(); ++emb)
+ delete *emb;
+
+ std::list<HyperText*>::iterator hyp = hyperlist.begin();
for (; hyp != hyperlist.end(); ++hyp)
- {
delete *hyp;
- }
}
int HWPFile::ReadHwpFile(HStream * stream)