Skip to content

Commit

Permalink
[9520] Prevent possible memory leak in WorldSession
Browse files Browse the repository at this point in the history
  • Loading branch information
derex committed Mar 5, 2010
1 parent 3faa3c4 commit 1a94bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/WorldSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,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)",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9519"
#define REVISION_NR "9520"
#endif // __REVISION_NR_H__

0 comments on commit 1a94bad

Please sign in to comment.