Changeset - r17357:315e692ac658
[Not reviewed]
master
0 1 0
smatz - 13 years ago 2011-02-19 18:25:24
smatz@openttd.org
(svn r22113) -Codechange: use PoolBase::CleanAll() to clean all pools at game exit
1 file changed with 2 insertions and 11 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -265,17 +265,6 @@ static void ShutdownGame()
 

	
 
	/* Uninitialize variables that are allocated dynamically */
 
	GamelogReset();
 
	_town_pool.CleanPool();
 
	_industry_pool.CleanPool();
 
	_station_pool.CleanPool();
 
	_roadstop_pool.CleanPool();
 
	_vehicle_pool.CleanPool();
 
	_sign_pool.CleanPool();
 
	_order_pool.CleanPool();
 
	_group_pool.CleanPool();
 
	_cargopacket_pool.CleanPool();
 
	_engine_pool.CleanPool();
 
	_company_pool.CleanPool();
 

	
 
#ifdef ENABLE_NETWORK
 
	free(_config_file);
 
@@ -283,6 +272,8 @@ static void ShutdownGame()
 

	
 
	ResetNewGRFData();
 

	
 
	PoolBase::CleanAll();
 

	
 
	/* Close all and any open filehandles */
 
	FioCloseAll();
 
}
0 comments (0 inline, 0 general)