From f123da938575a329f35fd274eae802e74caf3ea9 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 12 Nov 2016 11:07:39 +0100 Subject: [PATCH] - Fixed GCC warnings with new history code. --- src/c_console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c_console.cpp b/src/c_console.cpp index 8292624cb3..f5265cf409 100644 --- a/src/c_console.cpp +++ b/src/c_console.cpp @@ -613,7 +613,7 @@ void C_DeinitConsole () while (hist != NULL) { History *next = hist->Newer; - free (hist); + delete hist; hist = next; } HistTail = HistHead = HistPos = NULL; @@ -1659,7 +1659,7 @@ CCMD (history) while (hist) { - Printf (" %s\n", hist->String); + Printf (" %s\n", hist->String.GetChars()); hist = hist->Newer; } }