Fixing possible memory leak and compiler warnings.

This commit is contained in:
lotodore
2011-02-28 19:59:14 +00:00
parent 2cd2ac57ca
commit 2ad5f1cb40
3 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -68,9 +68,9 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
currentBoard = myFactory->createBoard(dealerPosition);
// create player lists
seatsList = PlayerList(new std::list<boost::shared_ptr<PlayerInterface> >);
activePlayerList = PlayerList(new std::list<boost::shared_ptr<PlayerInterface> >);
runningPlayerList = PlayerList(new std::list<boost::shared_ptr<PlayerInterface> >);
seatsList.reset(new std::list<boost::shared_ptr<PlayerInterface> >);
activePlayerList.reset(new std::list<boost::shared_ptr<PlayerInterface> >);
runningPlayerList.reset(new std::list<boost::shared_ptr<PlayerInterface> >);
// create player
player_i = playerDataList.begin();