summaryrefslogtreecommitdiff
path: root/sc
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 20:24:26 +0200
commitdbafd0b0e84463a27ac88a380d88348a7449468c (patch)
treecef760ca50f2d54536b2e5250f96b030cc0e0e5c /sc
parent39fd223cd65c8b6405fa3b33a9f6be680c745713 (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> (cherry picked from commit 8407daed1ddab1cc754f72d9f7d140a649abf1f5) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97299
Diffstat (limited to 'sc')
-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