diff options
author | Machiavelli <none@none> | 2009-05-27 09:29:32 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-05-27 09:29:32 +0200 |
commit | fac0b28ece7de0ae7cab3d9ff87ae1ff7c69fda3 (patch) | |
tree | da822ac457279b95dd3e8e9d4162524336add685 | |
parent | 33424eb608eccfcb6cddb97282aaae937efc119e (diff) |
* Use free() rather than delete operator to deallocate memory allocated by strdup
--HG--
branch : trunk
-rw-r--r-- | src/game/Chat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |