diff options
author | click <none@none> | 2010-04-12 14:24:10 +0200 |
---|---|---|
committer | click <none@none> | 2010-04-12 14:24:10 +0200 |
commit | e44dc0af743054ef2b78838d5cd01d9cfc9f48b4 (patch) | |
tree | 74c0716c568b38fb26a386aced7eb5c05df55e0a | |
parent | 52ba3d3a9635075d4b04d0606838408a64e0bdbb (diff) |
* Prevent possible memory leak in WorldSession (correction of order)
Fix by Derex
--HG--
branch : trunk
-rw-r--r-- | src/game/WorldSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)", |