filesystem: when shutting down, clean up gameinfo pointers and total games count
This commit is contained in:
parent
5e524bca60
commit
1d99f65e86
1 changed files with 5 additions and 0 deletions
|
@ -1729,12 +1729,17 @@ FS_Shutdown
|
||||||
void FS_ShutdownStdio( void )
|
void FS_ShutdownStdio( void )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// release gamedirs
|
// release gamedirs
|
||||||
for( i = 0; i < FI.numgames; i++ )
|
for( i = 0; i < FI.numgames; i++ )
|
||||||
{
|
{
|
||||||
if( FI.games[i] )
|
if( FI.games[i] )
|
||||||
|
{
|
||||||
Mem_Free( FI.games[i] );
|
Mem_Free( FI.games[i] );
|
||||||
|
FI.games[i] = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
FI.numgames = 0;
|
||||||
|
|
||||||
FS_ClearSearchPath(); // release all wad files too
|
FS_ClearSearchPath(); // release all wad files too
|
||||||
Mem_FreePool( &fs_mempool );
|
Mem_FreePool( &fs_mempool );
|
||||||
|
|
Loading…
Add table
Reference in a new issue