summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-06-27 10:24:06 +0200
committerCaolán McNamara <caolanm@redhat.com>2020-06-27 17:16:12 +0200
commitd9438b8d007c8bb7f2cf100e37f2adf739a20501 (patch)
tree28b33d5680eaa1fc7428b62f53f2609a12f63207
parentd072f33fd6492ce10f696ae9e10793d814771c81 (diff)
cid#1464973: RESOURCE_LEAK (sc/excel)
Change-Id: I923788f57e022c99a89a6406cf3ed02066efd022 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97279 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/excel/excel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx
index 2c3a885029d0..34dd49a81c8b 100644
--- a/sc/source/filter/excel/excel.cxx
+++ b/sc/source/filter/excel/excel.cxx
@@ -346,7 +346,7 @@ static ErrCode lcl_ExportExcelBiff( SfxMedium& rMedium, ScDocument *pDocument,
{
// To avoid long paths split and open substorages recursively
// Splitting paths manually, since comphelper::string::split is trimming special characters like \0x01, \0x09
- SotStorage * pStorage = xEncryptedRootStrg.get();
+ tools::SvRef<SotStorage> pStorage = xEncryptedRootStrg.get();
OUString sFileName;
sal_Int32 idx = 0;
do