diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-16 22:00:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-16 22:00:30 +0300 |
commit | fc6e4c75e29c26b46af5d0c17bbd124211563e4c (patch) | |
tree | 834b022769009c6c86354e98363a03b9357ce14d /src/gui/widgets/button.cpp | |
parent | fa8f48584bcf693ef7293d94dc55161b9020eb3f (diff) | |
download | ManaVerse-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.gz ManaVerse-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.bz2 ManaVerse-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.tar.xz ManaVerse-fc6e4c75e29c26b46af5d0c17bbd124211563e4c.zip |
Fix some possible memory leaks.
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r-- | src/gui/widgets/button.cpp | 2 |
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++) |