summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-06-27 09:23:09 +0200
committerCaolán McNamara <caolanm@redhat.com>2020-06-27 17:07:28 +0200
commitd8c80f5f1f0d1bee6fef8ebf978ed12b06f26e5e (patch)
tree991d86280fd236d0c34cbfd101eff0be15904de9 /sd/source
parent60632e4f6bf46f3320f6536cd6e944bb1dac169c (diff)
cid#1464975: RESOURCE_LEAK (sd/sdpptwrp)
Change-Id: Icb8a1add327e7b11b4095c1e3f60cddf2ea0f5c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97296 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/filter/sdpptwrp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/filter/sdpptwrp.cxx b/sd/source/filter/sdpptwrp.cxx
index 2374c69f280d..68b0b1886fd2 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -332,7 +332,7 @@ bool SdPPTFilter::Export()
break;
}
- SotStorageStream* pStream = pStorage->OpenSotStream(sFileName);
+ tools::SvRef<SotStorageStream> pStream = pStorage->OpenSotStream(sFileName);
if (!pStream)
{
bRet = false;