summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widgets/dropdown.cpp')
-rw-r--r--src/guichan/widgets/dropdown.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guichan/widgets/dropdown.cpp b/src/guichan/widgets/dropdown.cpp
index c666b47e4..da7ff754c 100644
--- a/src/guichan/widgets/dropdown.cpp
+++ b/src/guichan/widgets/dropdown.cpp
@@ -106,10 +106,16 @@ namespace gcn
}
if (mInternalScrollArea)
+ {
delete mScrollArea;
+ mScrollArea = 0;
+ }
if (mInternalListBox)
+ {
delete mListBox;
+ mListBox = 0;
+ }
setInternalFocusHandler(NULL);
}