From fac0b28ece7de0ae7cab3d9ff87ae1ff7c69fda3 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Wed, 27 May 2009 09:29:32 +0200 Subject: * Use free() rather than delete operator to deallocate memory allocated by strdup --HG-- branch : trunk --- src/game/Chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 5d0901b0596..81655dad638 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -766,7 +766,7 @@ void ChatHandler::SendGlobalGMSysMessage(const char *str) FillSystemMessageData(&data, line); sWorld.SendGlobalGMMessage(&data); } - delete buf; + free(buf); } void ChatHandler::SendSysMessage(int32 entry) -- cgit v1.2.3