coverity#1215294 Resource leak

Change-Id: I6fc18afd6189060de6943b003dea933713e19773
This commit is contained in:
Caolán McNamara
2014-05-23 09:32:35 +01:00
parent 6ab75ecf62
commit be02c2b458

View File

@@ -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 )