summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 12:23:50 -0600
committerIra Rice <irarice@gmail.com>2009-03-10 12:50:39 -0600
commitcabb9735f2e31b9f1f64b2496e1775d54861da36 (patch)
tree6772eda38f08a77af7717c8f4747aab77061cfcf /src/game.cpp
parent75fc8e62d25ff1d39408588f76d95df4a9a7e663 (diff)
downloadmana-client-cabb9735f2e31b9f1f64b2496e1775d54861da36.tar.gz
mana-client-cabb9735f2e31b9f1f64b2496e1775d54861da36.tar.bz2
mana-client-cabb9735f2e31b9f1f64b2496e1775d54861da36.tar.xz
mana-client-cabb9735f2e31b9f1f64b2496e1775d54861da36.zip
Fix some mem leaks
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3e626d87..144b059f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -205,6 +205,7 @@ void createGuiWindows(Network *network)
npcListDialog = new NpcListDialog(network);
npcStringDialog = new NpcStringDialog(network);
skillDialog = new SkillDialog();
+ setupWindow = new Setup();
minimap = new Minimap();
equipmentWindow = new EquipmentWindow();
tradeWindow = new TradeWindow(network);
@@ -338,12 +339,11 @@ Game::Game(Network *network):
msg.writeInt32(tick_time);
engine->changeMap(map_path);
-
- setupWindow->setInGame(true);
}
Game::~Game()
{
+ delete player_node;
destroyGuiWindows();
delete beingManager;
@@ -351,7 +351,6 @@ Game::~Game()
delete joystick;
delete particleEngine;
delete engine;
- delete player_node;
beingManager = NULL;
floorItemManager = NULL;