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.1.0preview~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db6a39141905d8ac033ee4022b7df0733640f681;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 ::stable-branch::merge=ecb8d61815e931cc3ff9e0db0e3f64a86fc4400c --- 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; }