summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 72790f6a..8a073bdd 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -110,13 +110,7 @@ SkillDialog::SkillDialog():
SkillDialog::~SkillDialog()
{
- delete skillListBox;
-
- for (int i = skillList.size() - 1; i >= 0; i--)
- {
- delete skillList[i];
- }
- skillList.clear();
+ cleanList();
}
void SkillDialog::action(const std::string& eventId)
@@ -210,6 +204,6 @@ void SkillDialog::cleanList()
for (int i = skillList.size() - 1; i >= 0; i--)
{
delete skillList[i];
- skillList.pop_back();
}
+ skillList.clear();
}