diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-07-22 00:06:56 -0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-22 03:16:29 +0000 |
commit | d3cf684146162a1528046ab2bcd7d9fa94443c69 (patch) | |
tree | 096a2d938d48c6587fa40bc7dbab45ed25a72fd7 /starmath | |
parent | 51a42da0c6d60a95ca35c90e2a8a4dc27efdf40f (diff) |
Math: Fix memory leak with SmDocShell
Change-Id: Ife984f60344fe41501c9e17b10dab256e14fe9e6
Reviewed-on: https://gerrit.libreoffice.org/5017
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 1 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index c46cf7948e28..9a98cf97e885 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 8f71602d27d6..d7656f505190 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; |