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>
This commit is contained in:
Julien Nabet 2020-06-27 10:24:06 +02:00 committed by Caolán McNamara
parent d072f33fd6
commit d9438b8d00

View file

@ -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