summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 12:23:50 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 12:23:50 -0600
commit17f9d5abcb05da185486ccfba293f3a8c9eab437 (patch)
tree7545a7bdd3acefc1ff92f345416872c896b90ddb /src/game.cpp
parent4a08d3b4bec3fa0fc1878140b0f14c8b38d6420b (diff)
downloadmana-17f9d5abcb05da185486ccfba293f3a8c9eab437.tar.gz
mana-17f9d5abcb05da185486ccfba293f3a8c9eab437.tar.bz2
mana-17f9d5abcb05da185486ccfba293f3a8c9eab437.tar.xz
mana-17f9d5abcb05da185486ccfba293f3a8c9eab437.zip
Fix some mem leaks
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 74a52ddf..ae708adf 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -204,7 +204,6 @@ 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);
@@ -341,11 +340,12 @@ Game::Game(Network *network):
msg.writeInt32(tick_time);
engine->changeMap(map_path);
+
+ setupWindow->setInGame(true);
}
Game::~Game()
{
- delete player_node;
destroyGuiWindows();
delete beingManager;
@@ -353,6 +353,7 @@ Game::~Game()
delete joystick;
delete particleEngine;
delete engine;
+ delete player_node;
beingManager = NULL;
floorItemManager = NULL;