summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/hwpfile.cpp')
-rw-r--r--hwpfilter/source/hwpfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/hwpfilter/source/hwpfile.cpp b/hwpfilter/source/hwpfile.cpp
index ee820ef6f445..84c093a8c825 100644
--- a/hwpfilter/source/hwpfile.cpp
+++ b/hwpfilter/source/hwpfile.cpp
@@ -72,6 +72,9 @@ HWPFile::HWPFile(void)
*/
HWPFile::~HWPFile(void)
{
+ if (oledata)
+ delete oledata;
+
if (hiodev)
delete hiodev;
@@ -345,6 +348,8 @@ bool HWPFile::TagsRead(void)
}
break;
case FILETAG_OLE_OBJECT:
+ if (oledata)
+ delete oledata;
oledata = new OlePicture(size);
oledata->Read(*this);
break;