diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 09:40:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:00 +0100 |
commit | 354411e83afae22b22a5f7b9ff2e8762045c0667 (patch) | |
tree | 1a76d78f59ba96f158df31a09a78c2f0032f4081 | |
parent | 16e425425f2496c6320ad1b01114a07e62b8d074 (diff) |
coverity#1215291 Resource leak
Change-Id: Ia62459945cd45f493754a1412b74242d3994f7f0
-rw-r--r-- | oox/source/export/drawingml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 373c3b2305b0..652b0b8e143c 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -2362,6 +2362,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) bool bLightRigRotationPresent = false; sax_fastparser::FastAttributeList *aLightRigAttrList = mpFS->createAttrList(); + sax_fastparser::XFastAttributeListRef xLightAttrList( aLightRigAttrList ); sax_fastparser::FastAttributeList *aLightRigRotationAttrList = mpFS->createAttrList(); sax_fastparser::XFastAttributeListRef xLightRotAttrList( aLightRigRotationAttrList ); for( sal_Int32 i=0; i < aLightRigProps.getLength(); ++i ) @@ -2413,8 +2414,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) if( aEffectProps.getLength() > 0 ) { - sax_fastparser::XFastAttributeListRef xAttrList( aLightRigAttrList ); - mpFS->startElementNS( XML_a, XML_lightRig, xAttrList ); + mpFS->startElementNS( XML_a, XML_lightRig, xLightAttrList ); if( bLightRigRotationPresent ) { mpFS->singleElementNS( XML_a, XML_rot, xLightRotAttrList ); |