mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fix most of memleaks discovered by valgrind
This commit is contained in:
@@ -726,11 +726,11 @@ CGameInfoCallback::CGameInfoCallback(CGameState * GS):
|
||||
{
|
||||
}
|
||||
|
||||
std::shared_ptr<const boost::multi_array<ui8, 3>> CPlayerSpecificInfoCallback::getVisibilityMap() const
|
||||
{
|
||||
//boost::shared_lock<boost::shared_mutex> lock(*gs->mx);
|
||||
return gs->getPlayerTeam(*getPlayerID())->fogOfWarMap;
|
||||
}
|
||||
//std::shared_ptr<const boost::multi_array<ui8, 3>> CPlayerSpecificInfoCallback::getVisibilityMap() const
|
||||
//{
|
||||
// //boost::shared_lock<boost::shared_mutex> lock(*gs->mx);
|
||||
// return gs->getPlayerTeam(*getPlayerID())->fogOfWarMap;
|
||||
//}
|
||||
|
||||
int CPlayerSpecificInfoCallback::howManyTowns() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user