diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-30 23:57:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-31 01:04:53 +0300 |
commit | 91a51ec64c35713914b22f2d9a283dc5b4091c12 (patch) | |
tree | 0289142a45284514a8981b02601c83ac1039dd5d /src/gui/widgets/tabbedarea.cpp | |
parent | d629f56517f55d1fd756c4774d9a368d66f615df (diff) | |
download | manaverse-91a51ec64c35713914b22f2d9a283dc5b4091c12.tar.gz manaverse-91a51ec64c35713914b22f2d9a283dc5b4091c12.tar.bz2 manaverse-91a51ec64c35713914b22f2d9a283dc5b4091c12.tar.xz manaverse-91a51ec64c35713914b22f2d9a283dc5b4091c12.zip |
Fix memory leaks and some other errors.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index f4b4a78f8..6b90cb381 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -46,13 +46,10 @@ TabbedArea::TabbedArea() : gcn::TabbedArea(), TabbedArea::~TabbedArea() { - if (!mEnableScrollButtons) - { - delete mArrowButton[0]; - mArrowButton[0] = 0; - delete mArrowButton[1]; - mArrowButton[1] = 0; - } + delete mArrowButton[0]; + mArrowButton[0] = 0; + delete mArrowButton[1]; + mArrowButton[1] = 0; } void TabbedArea::enableScrollButtons(bool enable) |