diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-17 21:11:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-17 21:13:51 +0100 |
commit | a7a775da71e0d9908bf21b419b5db1550a94eb8b (patch) | |
tree | 2e191ce18abd54140b5cfb6d3a9c18aa7f0cef79 /sw/source/filter/ww8 | |
parent | 262aa2c2e540c803196d53779fb72226a8efeb5f (diff) |
coverity#1202835 Resource leak
Change-Id: I2507c7741e803fcf3e4b81193dfafb144d50a0a8
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 801c0ac4a3ad..3de5f8b506cd 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2078,8 +2078,6 @@ void DocxAttributeOutput::ParagraphStyle( sal_uInt16 nStyle ) static void impl_borderLine( FSHelperPtr pSerializer, sal_Int32 elementToken, const SvxBorderLine* pBorderLine, sal_uInt16 nDist, bool bWriteShadow = false, const table::BorderLine2* rStyleProps = NULL ) { - FastAttributeList* pAttr = pSerializer->createAttrList(); - // Compute val attribute value // Can be one of: // single, double, @@ -2156,6 +2154,7 @@ static void impl_borderLine( FSHelperPtr pSerializer, sal_Int32 elementToken, co pBorderLine->GetWidth() == convertMm100ToTwip( rStyleProps->LineWidth ) ) return; + FastAttributeList* pAttr = pSerializer->createAttrList(); pAttr->add( FSNS( XML_w, XML_val ), OString( pVal ) ); if ( pBorderLine && !pBorderLine->isEmpty() ) |