mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix memory leaks in library
This commit is contained in:
parent
af0afb251e
commit
d4496c81f9
@ -318,6 +318,7 @@ CTownHandler::CTownHandler():
|
||||
CTownHandler::~CTownHandler()
|
||||
{
|
||||
delete randomTown;
|
||||
delete randomFaction;
|
||||
}
|
||||
|
||||
JsonNode readBuilding(CLegacyConfigParser & parser)
|
||||
|
@ -166,6 +166,8 @@ CGameState::~CGameState()
|
||||
// explicitly delete all ongoing battles first - BattleInfo destructor requires valid CGameState
|
||||
currentBattles.clear();
|
||||
map.dellNull();
|
||||
scenarioOps.dellNull();
|
||||
initialOpts.dellNull();
|
||||
}
|
||||
|
||||
void CGameState::preInit(Services * services)
|
||||
|
Loading…
x
Reference in New Issue
Block a user