From: havoc Date: Sun, 21 Nov 2010 12:34:31 +0000 (+0000) Subject: fix a couple error messages on shutdown of dedicated server X-Git-Tag: xonotic-v0.5.0~438^2~218 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecb8d61815e931cc3ff9e0db0e3f64a86fc4400c;p=xonotic%2Fdarkplaces.git fix a couple error messages on shutdown of dedicated server git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10623 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index ccdd38da..0eaccd3e 100644 --- a/console.c +++ b/console.c @@ -126,8 +126,10 @@ ConBuffer_Shutdown void ConBuffer_Shutdown(conbuffer_t *buf) { buf->active = false; - Mem_Free(buf->text); - Mem_Free(buf->lines); + if (buf->text) + Mem_Free(buf->text); + if (buf->lines) + Mem_Free(buf->lines); buf->text = NULL; buf->lines = NULL; }