diff options
Diffstat (limited to 'hwpfilter')
-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) |