summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 61ec28a2..f0d7e022 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -37,8 +37,8 @@
int Button::mInstances = 0;
float Button::mAlpha = 1.0;
-ImageRect* Button::mButton;
-TextPopup* Button::mTextPopup = 0;
+ImageRect *Button::mButton;
+TextPopup *Button::mTextPopup = 0;
enum{
BUTTON_STANDARD, // 0
@@ -188,6 +188,7 @@ Button::~Button()
// Remove the popup
delete mTextPopup;
+ mTextPopup = 0;
}
removeButtonIcon();
}