mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22113) -Codechange: use PoolBase::CleanAll() to clean all pools at game exit
This commit is contained in:
parent
5fd13843f7
commit
1d9cae9afa
|
@ -265,17 +265,6 @@ static void ShutdownGame()
|
||||||
|
|
||||||
/* Uninitialize variables that are allocated dynamically */
|
/* Uninitialize variables that are allocated dynamically */
|
||||||
GamelogReset();
|
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
|
#ifdef ENABLE_NETWORK
|
||||||
free(_config_file);
|
free(_config_file);
|
||||||
|
@ -283,6 +272,8 @@ static void ShutdownGame()
|
||||||
|
|
||||||
ResetNewGRFData();
|
ResetNewGRFData();
|
||||||
|
|
||||||
|
PoolBase::CleanAll();
|
||||||
|
|
||||||
/* Close all and any open filehandles */
|
/* Close all and any open filehandles */
|
||||||
FioCloseAll();
|
FioCloseAll();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue