From af909481825d17ff8511efb22cb30b161c5afd98 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 18 Jun 2012 16:17:39 +0000 Subject: [PATCH] bring some freeish()ing operations ahead from after Errorish() calls From /dev/humancontroller. --- code/cgame/cg_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/cg_main.c b/code/cgame/cg_main.c index 8b3403f2..b923f816 100644 --- a/code/cgame/cg_main.c +++ b/code/cgame/cg_main.c @@ -1447,8 +1447,8 @@ void CG_LoadMenus(const char *menuFile) { } if ( len >= MAX_MENUDEFFILE ) { - 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 ); + trap_Error( va( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i", menuFile, len, MAX_MENUDEFFILE ) ); return; }