Kaydet (Commit) f5fd26fd authored tarafından Markus Mohrhard's avatar Markus Mohrhard

CID#1103719: fix memory leak

üst b74233d4
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "oox/vml/vmldrawingfragment.hxx" #include "oox/vml/vmldrawingfragment.hxx"
#include "oox/vml/vmlshape.hxx" #include "oox/vml/vmlshape.hxx"
#include "oox/drawingml/themefragmenthandler.hxx" #include "oox/drawingml/themefragmenthandler.hxx"
#include <boost/scoped_ptr.hpp>
namespace oox { namespace shape { namespace oox { namespace shape {
...@@ -103,10 +104,10 @@ uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getChartShape ...@@ -103,10 +104,10 @@ uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getChartShape
{ {
case XML_chart: case XML_chart:
{ {
ContextHandler2Helper *rFragmentHandler boost::scoped_ptr<ContextHandler2Helper> pFragmentHandler(
(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath)); new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
mpShape.reset(new Shape("com.sun.star.drawing.OLE2Shape" )); mpShape.reset(new Shape("com.sun.star.drawing.OLE2Shape" ));
mxChartShapeContext.set(new ChartGraphicDataContext(*rFragmentHandler, mpShape, true)); mxChartShapeContext.set(new ChartGraphicDataContext(*pFragmentHandler, mpShape, true));
break; break;
} }
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment