diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-25 21:03:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-25 21:03:10 +0000 |
commit | 9a72cf9dc36ad3acedfa9bcc4281811ba6827168 (patch) | |
tree | 1feefd118a837abc6b55bd3f2e81b552cbd23a79 /sw | |
parent | b50c438583c4e3f8865eb553694a209803c988f5 (diff) |
ofz#4777: Direct-leak
Change-Id: Iefb1304540b59a1d0fae79d9d5c1ad4a6474d925
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index c73f0b2fffe3..27c49f859786 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -602,7 +602,7 @@ sal_uInt16 SwWW8ImplReader::End_Field() // create new field SwFieldType* pFieldType = m_rDoc.getIDocumentFieldsAccess().GetSysFieldType(SwFieldIds::HiddenText); - SwHiddenTextField *const pHTField = new SwHiddenTextField( + SwHiddenTextField aHTField( static_cast<SwHiddenTextFieldType*>(pFieldType), paramCondition, paramTrue, @@ -610,7 +610,7 @@ sal_uInt16 SwWW8ImplReader::End_Field() static_cast<sal_uInt16>(TYP_CONDTXTFLD)); // insert new field into document - m_rDoc.getIDocumentContentOperations().InsertPoolItem(*m_pPaM, SwFormatField(*pHTField)); + m_rDoc.getIDocumentContentOperations().InsertPoolItem(*m_pPaM, SwFormatField(aHTField)); break; } default: |