[quake3-commits] r2262 - trunk/code/cgame

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 18 12:17:39 EDT 2012


Author: ztm
Date: 2012-06-18 12:17:39 -0400 (Mon, 18 Jun 2012)
New Revision: 2262

Modified:
   trunk/code/cgame/cg_main.c
Log:
bring some freeish()ing operations ahead from after Errorish() calls

>From /dev/humancontroller.

Modified: trunk/code/cgame/cg_main.c
===================================================================
--- trunk/code/cgame/cg_main.c	2012-06-18 16:16:57 UTC (rev 2261)
+++ trunk/code/cgame/cg_main.c	2012-06-18 16:17:39 UTC (rev 2262)
@@ -1447,8 +1447,8 @@
 	}
 
 	if ( len >= MAX_MENUDEFFILE ) {
+		trap_FS_FCloseFile( f );
 		trap_Error( va( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i", menuFile, len, MAX_MENUDEFFILE ) );
-		trap_FS_FCloseFile( f );
 		return;
 	}
 



More information about the quake3-commits mailing list