diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/unoshape.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index 0eb3ef33101c..862cbb1a0766 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -428,7 +428,8 @@ class SVXCORE_DLLPUBLIC SvxShapeGroup final : public SvxShapeGroupAnyD, public css::drawing::XShapes2 { private: - rtl::Reference< SvxDrawPage> mxPage; + /// using a weak reference to prevent leaks via ref-counting cycles + unotools::WeakReference< SvxDrawPage> mxWeakPage; void addUnoShape( const css::uno::Reference< css::drawing::XShape >& xShape, size_t nPos ); void addShape(SvxShape& rShape, size_t nPos); |