diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 09:19:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 09:25:22 +0000 |
commit | 65dcd1d8195069c8c8acb3a188b8e5616c51029c (patch) | |
tree | f8a82607ae70b1112f5a6e7d9674c9b6c857436c | |
parent | 42f2a87520153981e918e4bccf3410c382fb52d4 (diff) |
ofz#860 clear old data before reading new data
Change-Id: I3bf5c2072a328052004c4c0551c2b125cb8ab19b
Reviewed-on: https://gerrit.libreoffice.org/35165
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index f4f96dc9c54e..90fdfdbfe86c 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -357,6 +357,8 @@ void HWPFile::TagsRead() return; } + _hwpInfo.back_info.data.clear(); + //read potentially compressed data in blocks as its more //likely large values are simply broken and we'll run out //of data before we need to realloc |