sw/source/filter/ww8/wrtww8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 39fd223cd65c8b6405fa3b33a9f6be680c745713 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Jun 27 10:34:24 2020 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Jun 27 17:32:01 2020 +0200 cid#1464967: RESOURCE_LEAK (sw/wrtww8) Change-Id: Ic1aa0d42f174808c7700875cb31f1c726b3160e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97298 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index c3fe9c0a36f9..5fedd5bb39b7 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -3751,7 +3751,7 @@ ErrCode SwWW8Writer::WriteStorage() break; } - SotStorageStream* pStream = pStorage->OpenSotStream(sFileName); + tools::SvRef<SotStorageStream> pStream = pStorage->OpenSotStream(sFileName); if (!pStream) { nErrorCode = ERRCODE_IO_GENERAL; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits