mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix memory leaks in library
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user