From ecb8d61815e931cc3ff9e0db0e3f64a86fc4400c Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 21 Nov 2010 12:34:31 +0000 Subject: [PATCH] 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 --- console.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2