mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-22 04:11:57 +00:00
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:
parent
1a40cbbe89
commit
14f42588a8
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue