summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-16 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-16 22:00:30 +0300
commitfc6e4c75e29c26b46af5d0c17bbd124211563e4c (patch)
tree834b022769009c6c86354e98363a03b9357ce14d /src/gui/widgets/button.cpp
parentfa8f48584bcf693ef7293d94dc55161b9020eb3f (diff)
downloadmv-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.gz
mv-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.bz2
mv-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.xz
mv-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.zip
Fix some possible memory leaks.
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp2
1 files changed, 2 insertions, 0 deletions
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++)