From e44dc0af743054ef2b78838d5cd01d9cfc9f48b4 Mon Sep 17 00:00:00 2001 From: click Date: Mon, 12 Apr 2010 14:24:10 +0200 Subject: * Prevent possible memory leak in WorldSession (correction of order) Fix by Derex --HG-- branch : trunk --- src/game/WorldSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 5decb5d9ecd..822d25b1711 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -173,7 +173,7 @@ bool WorldSession::Update(uint32 /*diff*/) ///- Retrieve packets from the receive queue and call the appropriate handlers /// not proccess packets if socket already closed WorldPacket* packet; - while (_recvQueue.next(packet) && m_Socket && !m_Socket->IsClosed ()) + while (m_Socket && !m_Socket->IsClosed() && _recvQueue.next(packet)) { /*#if 1 sLog.outError("MOEP: %s (0x%.4X)", -- cgit v1.2.3