From cad969704977941390ffb1d156960daec175226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 25 Jul 2013 12:37:09 +0100 Subject: [PATCH] have my own stab at fixing the leaking SmDocShell i.e. alternatives to 5dd1cd72f45df0ec13842d4ee9c849726cb74ea9 ef66cc105e0051fa1414b72c5ee2bf1b2f9331cb f9e981ba0e2da6ce122e3ef30aef057c439c8fb8 d3cf684146162a1528046ab2bcd7d9fa94443c69 Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829 --- starmath/inc/ElementsDockingWindow.hxx | 1 + starmath/source/ElementsDockingWindow.cxx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index c46cf7948e28..9b58be779f92 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -100,6 +100,7 @@ class SmElementsControl : public Control public: SmElementsControl(Window *pParent, const ResId& rResId); + virtual ~SmElementsControl(); void setElementSetId(sal_uInt16 aSetId); diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 8f71602d27d6..5e2b229ba377 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -178,6 +178,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId) : maFormat.SetBaseSize(PixelToLogic(Size(0, 24))); } +SmElementsControl::~SmElementsControl() +{ + mpDocShell->DoClose(); +} + void SmElementsControl::setVerticalMode(bool bVerticalMode) { mbVerticalMode = bVerticalMode;