From 14a9a1da30ca772efd42a9ce6662a11b102818bc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jul 2012 11:01:25 +0300 Subject: Fix leaks after last commit. --- src/gui/widgets/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index d956e9adf..d2ba03e07 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -339,6 +339,11 @@ void Window::setResizable(bool r) if (r) { + if (mGrip) + { + remove(mGrip); + delete mGrip; + } mGrip = new ResizeGrip; mGrip->setX(getWidth() - mGrip->getWidth() - getChildrenArea().x); mGrip->setY(getHeight() - mGrip->getHeight() - getChildrenArea().y); -- cgit v1.2.3-60-g2f50