summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-25 12:37:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-25 13:03:50 +0100
commitcad969704977941390ffb1d156960daec175226e (patch)
tree8268c4b2713281b9fe914bb4bc3c69fcb4366ae5 /starmath
parenta645a14cf46a1160c426052823772ad117f0bd8b (diff)
have my own stab at fixing the leaking SmDocShell
i.e. alternatives to 5dd1cd72f45df0ec13842d4ee9c849726cb74ea9 ef66cc105e0051fa1414b72c5ee2bf1b2f9331cb f9e981ba0e2da6ce122e3ef30aef057c439c8fb8 d3cf684146162a1528046ab2bcd7d9fa94443c69 Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/ElementsDockingWindow.hxx1
-rw-r--r--starmath/source/ElementsDockingWindow.cxx5
2 files changed, 6 insertions, 0 deletions
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;