diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-26 20:07:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-05 22:15:54 +0000 |
commit | 458bf0812570f517dd4b80efbcfb7e0fca9479f7 (patch) | |
tree | 20a84c003004b38810cbd97459a2f6b2018024f6 /package/source/zippackage/ZipPackageStream.cxx | |
parent | 5a2a266d4bb493a7e9e71616d567cb4ccdf82269 (diff) |
Resolves: tdf#88314 close temp file after each thread completed
Change-Id: Ic2eec30cfb5f61c53777eefeeb8bad6f552da2fc
Reviewed-on: https://gerrit.libreoffice.org/17355
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'package/source/zippackage/ZipPackageStream.cxx')
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index f3c5361c57e5..4473bac4576d 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -474,8 +474,10 @@ private: { try { + mpEntry->createBufferFile(); deflateZipEntry(mpEntry, mxInStream); mxInStream.clear(); + mpEntry->closeBufferFile(); } catch (const uno::Exception&) { @@ -823,7 +825,6 @@ bool ZipPackageStream::saveChild( { // Start a new thread deflating this zip entry ZipOutputEntry *pZipEntry = new ZipOutputEntry( - css::uno::Reference<css::io::XOutputStream>(), m_xContext, *pTempEntry, this, bToBeEncrypted); rZipOut.addDeflatingThread( pZipEntry, new DeflateThread(pZipEntry, xStream) ); } |