[Libreoffice-commits] core.git: sc/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sat Jun 27 15:16:53 UTC 2020


 sc/source/filter/excel/excel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d9438b8d007c8bb7f2cf100e37f2adf739a20501
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat Jun 27 10:24:06 2020 +0200
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jun 27 17:16:12 2020 +0200

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list