[Libreoffice-commits] core.git: starmath/inc starmath/source

Caolán McNamara caolanm at redhat.com
Thu Jul 25 05:04:11 PDT 2013


 starmath/inc/ElementsDockingWindow.hxx    |    1 +
 starmath/source/ElementsDockingWindow.cxx |    5 +++++
 2 files changed, 6 insertions(+)

New commits:
commit cad969704977941390ffb1d156960daec175226e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 25 12:37:09 2013 +0100

    have my own stab at fixing the leaking SmDocShell
    
    i.e. alternatives to
    5dd1cd72f45df0ec13842d4ee9c849726cb74ea9
    ef66cc105e0051fa1414b72c5ee2bf1b2f9331cb
    f9e981ba0e2da6ce122e3ef30aef057c439c8fb8
    d3cf684146162a1528046ab2bcd7d9fa94443c69
    
    Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829

diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx
index c46cf79..9b58be7 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 8f71602..5e2b229 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;


More information about the Libreoffice-commits mailing list