summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 09:49:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 14:16:00 +0100
commit505c7801bc660ebf8edb7e1467906f6e2afe3f42 (patch)
tree56154cf8e46d8dfd0c8831c36127b5d4af6ca85b /oox
parent56152538a80d143485a5e14477433cb5e682f550 (diff)
coverity#1215289 Resource leak
Change-Id: Ie4a0334ddb393726d982e9f4e51a45e391a1b1f0
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index df1d858f767c..00a887677ef2 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2117,6 +2117,7 @@ void DrawingML::WriteShapeEffect( const OUString& sName, const Sequence< Propert
sal_Int32 nAlpha = MAX_PERCENT;
Sequence< PropertyValue > aTransformations;
sax_fastparser::FastAttributeList *aOuterShdwAttrList = mpFS->createAttrList();
+ sax_fastparser::XFastAttributeListRef xOuterShdwAttrList( aOuterShdwAttrList );
for( sal_Int32 i=0; i < aEffectProps.getLength(); ++i )
{
if( aEffectProps[i].Name == "Attribs" )
@@ -2247,8 +2248,7 @@ void DrawingML::WriteShapeEffect( const OUString& sName, const Sequence< Propert
if( nEffectToken > 0 )
{
- sax_fastparser::XFastAttributeListRef xAttrList( aOuterShdwAttrList );
- mpFS->startElement( nEffectToken, xAttrList );
+ mpFS->startElement( nEffectToken, xOuterShdwAttrList );
if( bContainsColor )
{