summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 16:44:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 20:37:33 +0100
commit40c77417d18fadebe59b2e1b2e71cadbfc06bba6 (patch)
treeea1aaca0dbac8d2b34757f8349bff6941c0c3a4a /oox
parentecbc0a3cc7da9fb5c209c468abbccf6cb731f4be (diff)
coverity#1213283 Resource leak
Change-Id: I5002f3e935edcc9f09603a5b535e2b339ebed402
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 00a887677ef2..b5369c3357b2 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2324,6 +2324,7 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet )
sax_fastparser::FastAttributeList *aCameraAttrList = mpFS->createAttrList();
sax_fastparser::XFastAttributeListRef xCameraAttrList( aCameraAttrList );
sax_fastparser::FastAttributeList *aCameraRotationAttrList = mpFS->createAttrList();
+ sax_fastparser::XFastAttributeListRef xRotAttrList( aCameraRotationAttrList );
for( sal_Int32 i=0; i < aEffectProps.getLength(); ++i )
{
if( aEffectProps[i].Name == "prst" )
@@ -2403,7 +2404,6 @@ void DrawingML::WriteShape3DEffects( Reference< XPropertySet > xPropSet )
mpFS->startElementNS( XML_a, XML_camera, xCameraAttrList );
if( bCameraRotationPresent )
{
- sax_fastparser::XFastAttributeListRef xRotAttrList( aCameraRotationAttrList );
mpFS->singleElementNS( XML_a, XML_rot, xRotAttrList );
}
mpFS->endElementNS( XML_a, XML_camera );