diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-26 21:19:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-26 21:21:13 +0000 |
commit | 0a5f97f2985ec8e51910770d1748203cd4cd49c7 (patch) | |
tree | 7841ffbdde5f785ceafd1ca85310c61ea558ee46 /hwpfilter/source/hwpfile.cxx | |
parent | loplugin:loopvartoosmall (diff) | |
download | core-0a5f97f2985ec8e51910770d1748203cd4cd49c7.tar.gz core-0a5f97f2985ec8e51910770d1748203cd4cd49c7.zip |
ofz#691 leak of emblist data
Change-Id: Ic4231b93fafe73bf87995f226def64f7c9e131c3
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 8 |
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) |