diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-11 10:45:40 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-01-16 01:54:56 +0000 |
commit | 5d44c226dc325a80c9342b784c828f674a92c94d (patch) | |
tree | b8cf4cbb211d7caefd7ed15a7bbb8d0a30431e09 /sc | |
parent | 9b1467657cdc3f909056ed01f953a9e0372da07f (diff) |
crashtesting: exception during dtor
Change-Id: I9874778ba79540cfde32bf59c3a63ebb72889dc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141215
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 06423ddc61a378894c91a6a23fb31afb1701d8f2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145546
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index c201af071c21..559808cd2a91 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -1120,6 +1120,12 @@ bool XclExpXmlStream::exportDocument() PopStream(); // Free all FSHelperPtr, to flush data before committing storage + for (auto& entry : maOpenedStreamMap) + { + if (!entry.second.second) + continue; + entry.second.second->endDocument(); + } maOpenedStreamMap.clear(); commitStorage(); |