[Libreoffice-commits] core.git: starmath/inc starmath/source
Marcos Paulo de Souza
marcos.souza.org at gmail.com
Sun Jul 21 20:16:52 PDT 2013
starmath/inc/ElementsDockingWindow.hxx | 1 +
starmath/source/ElementsDockingWindow.cxx | 5 +++++
2 files changed, 6 insertions(+)
New commits:
commit d3cf684146162a1528046ab2bcd7d9fa94443c69
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date: Mon Jul 22 00:06:56 2013 -0300
Math: Fix memory leak with SmDocShell
Change-Id: Ife984f60344fe41501c9e17b10dab256e14fe9e6
Reviewed-on: https://gerrit.libreoffice.org/5017
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx
index c46cf79..9a98cf9 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);
+ ~SmElementsControl();
void setElementSetId(sal_uInt16 aSetId);
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 8f71602..d7656f5 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()
+{
+ delete mpDocShell;
+}
+
void SmElementsControl::setVerticalMode(bool bVerticalMode)
{
mbVerticalMode = bVerticalMode;
More information about the Libreoffice-commits
mailing list