Kaydet (Commit) 2b862165 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242499 Resource leak

Change-Id: Ie1de3270723e36f7fd4bfdc4192745c521c61ea4
üst 74e26e0b
......@@ -217,11 +217,11 @@ bool SwGlossaryHdl::CopyOrMove( const OUString& rSourceGroupName, OUString& rSou
const OUString& rDestGroupName, const OUString& rLongName, bool bMove )
{
SwTextBlocks* pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName, false);
SwTextBlocks* pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName, false);
if (pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) )
{
delete pDestGroup;
delete pSourceGroup;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment