diff options
author | Caolán McNamara <cmc@openoffice.org> | 2009-10-29 20:58:19 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2009-10-29 20:58:19 +0000 |
commit | 2fc3f91ce24c172a875eeb791bea3ae8ca0da08e (patch) | |
tree | 7415ce65ece302029d34619930f662f2e09b2e32 /hwpfilter | |
parent | a0761a87853911b3e6a75e993a99d08e608fcf14 (diff) |
#cmcfixes65: #i86357# fix mem leak
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpfile.cpp | 5 |
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; |