summaryrefslogtreecommitdiff
path: root/src/gui/setup_players.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-15 22:08:41 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-15 22:08:41 -0600
commit871af4828a0fc64637b8e08ca2d1df6233849d55 (patch)
tree7886a4b074f3a23a9ef14823b51e3582938da155 /src/gui/setup_players.cpp
parent6b59adabfcf909cb02075e2fab2d715b4e34af95 (diff)
downloadMana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.gz
Mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.bz2
Mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.xz
Mana-871af4828a0fc64637b8e08ca2d1df6233849d55.zip
Clean up some more memory leaks
And remove an unneeded variable
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r--src/gui/setup_players.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp
index e093a5b6..367d21a2 100644
--- a/src/gui/setup_players.cpp
+++ b/src/gui/setup_players.cpp
@@ -240,8 +240,8 @@ Setup_Players::Setup_Players():
RELATION_CHOICE_COLUMN_WIDTH);
mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf));
- gcn::ListModel *ignoreChoices = new IgnoreChoicesListModel;
- mIgnoreActionChoicesBox = new DropDown(ignoreChoices);
+ mIgnoreActionChoicesModel = new IgnoreChoicesListModel;
+ mIgnoreActionChoicesBox = new DropDown(mIgnoreActionChoicesModel);
for (int i = 0; i < COLUMNS_NR; i++)
{
@@ -300,6 +300,7 @@ Setup_Players::Setup_Players():
Setup_Players::~Setup_Players()
{
player_relations.removeListener(this);
+ delete mIgnoreActionChoicesModel;
}