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....@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 <fridr...@documentfoundation.org> Tested-by: Fridrich Strba <fridr...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits