diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-02-23 17:19:12 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-02-23 17:19:12 +0000 |
commit | 1fcefe616a39c2e572b8078c5c51c8e81a59c487 (patch) | |
tree | a688c3f6e63c3ceea701e5b299098bf36a6e911d /src | |
parent | 8c195e6f12860e61509244cc3bcbf258555a85f2 (diff) | |
download | Mana-1fcefe616a39c2e572b8078c5c51c8e81a59c487.tar.gz Mana-1fcefe616a39c2e572b8078c5c51c8e81a59c487.tar.bz2 Mana-1fcefe616a39c2e572b8078c5c51c8e81a59c487.tar.xz Mana-1fcefe616a39c2e572b8078c5c51c8e81a59c487.zip |
Fixed deletion in new Skill Dialog.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/newskill.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/gui/newskill.cpp b/src/gui/newskill.cpp index b9f33310..7f785932 100644 --- a/src/gui/newskill.cpp +++ b/src/gui/newskill.cpp @@ -168,13 +168,17 @@ NewSkillDialog::NewSkillDialog(): NewSkillDialog::~NewSkillDialog() { - // You don't have to delete children widgets. - // GUIchan will do it. - //delete skillbar; - //delete []skillLabel; - //delete []skillLevel; - //delete closeButton; - //delete []catButton; + for (int i = 0; i < N_SKILL_CAT_SIZE; i++) + { + delete skillbar[i]; + delete skillLabel[i]; + delete skillLevel[i]; + } + for (int i = 0; i < N_SKILL_CAT; i++) + { + delete catButton[i]; + } + delete closeButton; } void NewSkillDialog::action(const std::string& eventId) |