summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-11 08:47:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-11 08:47:04 +0100
commit88af59fa755505422958746fb321e15f50c99378 (patch)
tree60c3a8751d5f76a391d40fd160fa15413a37eb2d /oox
parent483ea555bfdde46dc581deaae5e782405de81a2e (diff)
CID#1103719 leak on default: path
Change-Id: I74a17da384499fb18f13d5caa04c356dfee71eff
Diffstat (limited to 'oox')
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index 3e7efb0827b0..96d484937975 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -97,16 +97,16 @@ uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getChartShape
{
if (!mxChartShapeContext.is())
{
- ContextHandler2Helper *rFragmentHandler
- (new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
- ShapePtr pMasterShape;
-
switch (nElement & 0xffff)
{
case XML_chart:
+ {
+ ContextHandler2Helper *rFragmentHandler
+ (new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
mpShape.reset(new Shape("com.sun.star.drawing.OLE2Shape" ));
mxChartShapeContext.set(new ChartGraphicDataContext(*rFragmentHandler, mpShape, true));
break;
+ }
default:
break;
}