diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-23 09:08:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-23 10:55:46 +0100 |
commit | 2becde65c64897b9621ca786a22fd7e942fc21be (patch) | |
tree | 81a28b7a83dcc535b09a81b219d05ff0281908ba /sw/source/uibase | |
parent | a3a40ba2a6d7c8b32234b223831a0269b06a240c (diff) |
coverity#1412991 Resource leak
Change-Id: I0fc9b64ba8783530a0b7d597edbf8be8a43f5fd6
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 0d024d7f02ec..71b5c12b1a66 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -721,6 +721,9 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName ) bRet = aReader.ReadGlossaries( *pR, *pGlossary, rCfg.IsSaveRelFile() ); } + + if (!pCurGrp) + delete pGlossary; } } } |