Core: Free memory allocated for opcode handlers at shutdown.

This commit is contained in:
Shauren committed 2012-09-11 15:59:45 +02:00
1 parent b075d8cca7
commit 3de6d44a00
5 files changed
+67 -36

No files matched your search

+2 -2
View File
@@ -731,8 +731,8 @@ int WorldSocket::ProcessIncoming(WorldPacket* new_pct)
return -1;
}
OpcodeHandler* handler = opcodeTable[opcode];
if (!handler || handler->status == STATUS_UNHANDLED)
OpcodeHandler const* handler = opcodeTable[opcode];
if (!handler || handler->Status == STATUS_UNHANDLED)
{
sLog->outError(LOG_FILTER_OPCODES, "No defined handler for opcode %s sent by %s", GetOpcodeNameForLogging(new_pct->GetOpcode()).c_str(), m_Session->GetPlayerName(false).c_str());
return 0;