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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sat Jun 27 14:34:02 UTC 2020


 sw/source/filter/ww8/wrtww8.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

    cid#1464967: RESOURCE_LEAK (sw/wrtww8)
    
    Change-Id: Ic1aa0d42f174808c7700875cb31f1c726b3160e9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97280
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 0dcc81d6cf2e..a34f4cfe1ebc 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -3752,7 +3752,7 @@ ErrCode SwWW8Writer::WriteStorage()
                 break;
             }
 
-            SotStorageStream* pStream = pStorage->OpenSotStream(sFileName);
+            tools::SvRef<SotStorageStream> pStream = pStorage->OpenSotStream(sFileName);
             if (!pStream)
             {
                 nErrorCode = ERRCODE_IO_GENERAL;


More information about the Libreoffice-commits mailing list