diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 16:20:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 16:20:49 +0300 |
commit | 170aae70566003a30ab1f6f936364484f6a0a097 (patch) | |
tree | 44002a7f43d1fdd8ba8253e729da825bd82142c3 /src/guichan/widgets/tabbedarea.cpp | |
parent | 09ebcebf32be3842d6158c3145492fbf2959440e (diff) | |
download | mv-170aae70566003a30ab1f6f936364484f6a0a097.tar.gz mv-170aae70566003a30ab1f6f936364484f6a0a097.tar.bz2 mv-170aae70566003a30ab1f6f936364484f6a0a097.tar.xz mv-170aae70566003a30ab1f6f936364484f6a0a097.zip |
Clean variables after deleting.
Diffstat (limited to 'src/guichan/widgets/tabbedarea.cpp')
-rw-r--r-- | src/guichan/widgets/tabbedarea.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guichan/widgets/tabbedarea.cpp b/src/guichan/widgets/tabbedarea.cpp index d430a76a3..26a45c1f0 100644 --- a/src/guichan/widgets/tabbedarea.cpp +++ b/src/guichan/widgets/tabbedarea.cpp @@ -81,10 +81,15 @@ namespace gcn remove(mWidgetContainer); delete mTabContainer; + mTabContainer = 0; delete mWidgetContainer; + mWidgetContainer = 0; for (unsigned int i = 0; i < mTabsToDelete.size(); i++) + { delete mTabsToDelete[i]; + mTabsToDelete[i] = 0; + } } void TabbedArea::addTab(const std::string& caption, Widget* widget) @@ -163,6 +168,7 @@ namespace gcn { mTabsToDelete.erase(iter2); delete tab; + tab = 0; break; } } |