diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 09:47:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:00 +0100 |
commit | 56152538a80d143485a5e14477433cb5e682f550 (patch) | |
tree | 9e8f2937e60a1738651dd4345224bed1479a8e24 /oox | |
parent | 354411e83afae22b22a5f7b9ff2e8762045c0667 (diff) |
coverity#1215290 Resource leak
Change-Id: Ia49f4e99e6663ea95dc85d4dd09e161413a2f419
Diffstat (limited to 'oox')
-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 652b0b8e143c..df1d858f767c 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -2322,6 +2322,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) bool bCameraRotationPresent = false; sax_fastparser::FastAttributeList *aCameraAttrList = mpFS->createAttrList(); + sax_fastparser::XFastAttributeListRef xCameraAttrList( aCameraAttrList ); sax_fastparser::FastAttributeList *aCameraRotationAttrList = mpFS->createAttrList(); for( sal_Int32 i=0; i < aEffectProps.getLength(); ++i ) { @@ -2399,8 +2400,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet ) if( aEffectProps.getLength() > 0 ) { - sax_fastparser::XFastAttributeListRef xAttrList( aCameraAttrList ); - mpFS->startElementNS( XML_a, XML_camera, xAttrList ); + mpFS->startElementNS( XML_a, XML_camera, xCameraAttrList ); if( bCameraRotationPresent ) { sax_fastparser::XFastAttributeListRef xRotAttrList( aCameraRotationAttrList ); |