diff options
-rw-r--r-- | include/svx/unoshape.hxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index 08c377040891..79e3f02b4d50 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -119,7 +119,7 @@ private: OUString maShapeName; /** these members are used to optimize XMultiProperty calls */ - SvxShapeImpl* mpImpl; + std::unique_ptr<SvxShapeImpl> mpImpl; bool mbIsMultiPropertyCall; css::uno::WeakReference< css::container::XIndexContainer > mxGluePoints; diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 4c3c4e6041e1..53173746007c 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -234,9 +234,6 @@ SvxShape::~SvxShape() throw() SdrObject::Free( pObject ); } - delete mpImpl; - mpImpl = nullptr; - EndListeningAll(); // call explicitly within SolarMutexGuard } |