summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-23 19:32:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-27 20:33:05 +0100
commit2d348132ab307e866dc2be8282b6e16aac65d29d (patch)
treebc9e817b2ddbc3134cc418317894b1aaa090d43a /sot
parent2f269aae084a7366a6111185f86a5e852629dfa8 (diff)
ofz#28918 Direct-Leak in SotStorage::OpenSotStream
Change-Id: I2d99a13822b07d98e03d7e7de91ca44ab4f8599d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108266 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/storage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index dd038048986e..60bcb6dc8bd6 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -530,10 +530,10 @@ bool SotStorage::Commit()
return ERRCODE_NONE == GetError();
}
-SotStorageStream * SotStorage::OpenSotStream( const OUString & rEleName,
+tools::SvRef<SotStorageStream> SotStorage::OpenSotStream( const OUString & rEleName,
StreamMode nMode )
{
- SotStorageStream * pStm = nullptr;
+ tools::SvRef<SotStorageStream> pStm;
if( m_pOwnStg )
{
// enable full Ole patches,