summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/sot/storage.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 33d71d81a12e..65cde53d2a67 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -143,7 +143,7 @@ public:
// create stream with connection to Storage,
// more or less a Parent-Child relationship
- SotStorageStream* OpenSotStream(const OUString & rEleName,
+ tools::SvRef<SotStorageStream> OpenSotStream(const OUString & rEleName,
StreamMode = StreamMode::STD_READWRITE);
SotStorage* OpenSotStorage(const OUString & rEleName,
StreamMode = StreamMode::STD_READWRITE,