Fixed some missing calls to trap_FS_FCloseFile

from Tim Angus in ioquake3
svn 95 git 33a48a0336865a9d21983e4836920cd9f3401101

Fixed some missing calls to trap_FS_FCloseFile

from http://www.quakesrc.org/forums/viewtopic.php?t=5374
This commit is contained in:
Jonathan Gray 2013-05-07 01:55:24 +10:00
parent 1a40cbbe89
commit 14f42588a8
2 changed files with 2 additions and 0 deletions

View file

@ -347,6 +347,7 @@ qboolean CG_ParseSurfsFile( const char *modelName, const char *skinName, char *s
if ( len >= sizeof( text ) - 1 )
{
Com_Printf( "File %s too long\n", sfilename );
trap_FS_FCloseFile( f );
return qfalse;
}

View file

@ -1000,6 +1000,7 @@ static qboolean UI_ParseAnimationFile( const char *filename, animation_t *animat
}
if ( len >= ( sizeof( text ) - 1 ) ) {
Com_Printf( "File %s too long\n", filename );
trap_FS_FCloseFile( f );
return qfalse;
}
trap_FS_Read( text, len, f );