From fc6e4c75e29c26b46af5d0c17bbd124211563e4c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Apr 2011 22:00:30 +0300 Subject: Fix some possible memory leaks. --- src/gui/widgets/button.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index a8e8b656d..91d297846 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -135,6 +135,8 @@ Button::~Button() { mInstances--; + delete mVertexes; + mVertexes = 0; if (mInstances == 0) { for (int mode = 0; mode < BUTTON_COUNT; mode++) -- cgit v1.2.3-70-g09d2