From 3818c9342bdc3bfd2964e8e3220e95c7a520641a Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 14 Nov 2005 00:58:29 +0000 Subject: [PATCH] Fix for uninitialised CB stuff. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1565 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/cvar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/common/cvar.c b/engine/common/cvar.c index 82ac4d15c..65fe92598 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -1111,5 +1111,6 @@ void Cvar_Shutdown(void) Z_Free(grp); } - CB_Free(cc_cache.cb); + if (cc_cache.cb) + CB_Free(cc_cache.cb); }