summaryrefslogtreecommitdiff
path: root/sd
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 16:24:36 +0200
commit7e8e53bb6ad01afe3315697915f2228ed5e07146 (patch)
tree60d613d593f521f6f6ddec3dd12def5932436bae /sd
parent76df547f1790b3bd7cca013b7002575c8c766384 (diff)
cid#1464975: RESOURCE_LEAK (sd/sdpptwrp)
Change-Id: Icb8a1add327e7b11b4095c1e3f60cddf2ea0f5c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97275 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-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 f40ccb7bcecb..3fbbcea1b772 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -331,7 +331,7 @@ bool SdPPTFilter::Export()
break;
}
- SotStorageStream* pStream = pStorage->OpenSotStream(sFileName);
+ tools::SvRef<SotStorageStream> pStream = pStorage->OpenSotStream(sFileName);
if (!pStream)
{
bRet = false;