diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-06-27 10:34:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-27 16:33:23 +0200 |
commit | a81bc97c2b3a197d0521d5af3d9f255912533788 (patch) | |
tree | 38ed08523138f21cf0ec94c9731f286fd8c9abb3 /sw | |
parent | 04ca5efc800c6b7a6e98e4278eb8be6ac6737fe9 (diff) |
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@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |