mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: when shutting down, clean up gameinfo pointers and total games count
This commit is contained in:
@@ -1729,12 +1729,17 @@ FS_Shutdown
|
||||
void FS_ShutdownStdio( void )
|
||||
{
|
||||
int i;
|
||||
|
||||
// release gamedirs
|
||||
for( i = 0; i < FI.numgames; i++ )
|
||||
{
|
||||
if( FI.games[i] )
|
||||
{
|
||||
Mem_Free( FI.games[i] );
|
||||
FI.games[i] = NULL;
|
||||
}
|
||||
}
|
||||
FI.numgames = 0;
|
||||
|
||||
FS_ClearSearchPath(); // release all wad files too
|
||||
Mem_FreePool( &fs_mempool );
|
||||
|
||||
Reference in New Issue
Block a user