aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-04-12 14:24:10 +0200
committerclick <none@none>2010-04-12 14:24:10 +0200
commite44dc0af743054ef2b78838d5cd01d9cfc9f48b4 (patch)
tree74c0716c568b38fb26a386aced7eb5c05df55e0a
parent52ba3d3a9635075d4b04d0606838408a64e0bdbb (diff)
* Prevent possible memory leak in WorldSession (correction of order)
Fix by Derex --HG-- branch : trunk
-rw-r--r--src/game/WorldSession.cpp2
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)",