summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/dropdown.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-01 16:20:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-01 16:20:49 +0300
commit170aae70566003a30ab1f6f936364484f6a0a097 (patch)
tree44002a7f43d1fdd8ba8253e729da825bd82142c3 /src/guichan/widgets/dropdown.cpp
parent09ebcebf32be3842d6158c3145492fbf2959440e (diff)
downloadplus-170aae70566003a30ab1f6f936364484f6a0a097.tar.gz
plus-170aae70566003a30ab1f6f936364484f6a0a097.tar.bz2
plus-170aae70566003a30ab1f6f936364484f6a0a097.tar.xz
plus-170aae70566003a30ab1f6f936364484f6a0a097.zip
Clean variables after deleting.
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);
}