From be02c2b458dedc8b3f4129c5a46604d1902641cd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 23 May 2014 09:32:35 +0100 Subject: coverity#1215294 Resource leak Change-Id: I6fc18afd6189060de6943b003dea933713e19773 --- oox/source/export/drawingml.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 05faa6d696bc..5c36ef32eafa 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -2434,6 +2434,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) Sequence< PropertyValue > aExtrusionColorProps, aContourColorProps; sax_fastparser::FastAttributeList *aBevelTAttrList = mpFS->createAttrList(); sax_fastparser::FastAttributeList *aBevelBAttrList = mpFS->createAttrList(); + sax_fastparser::XFastAttributeListRef xBevelAttrList( aBevelBAttrList ); sax_fastparser::FastAttributeList *aShape3DAttrList = mpFS->createAttrList(); for( sal_Int32 i=0; i < aShape3DProps.getLength(); ++i ) { @@ -2513,7 +2514,6 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) } if( bBevelBPresent ) { - sax_fastparser::XFastAttributeListRef xBevelAttrList( aBevelBAttrList ); mpFS->singleElementNS( XML_a, XML_bevelB, xBevelAttrList ); } if( aExtrusionColorProps.getLength() > 0 ) -- cgit