From 1454d237d1c350eb4ccbf786be802893791c2f9e Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Wed, 28 Dec 2011 16:01:15 +0000 Subject: Fixed some small memory leaks git-svn-id: http://mc-server.googlecode.com/svn/trunk@148 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 6bde57bbc..e27ed4ecb 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -231,6 +231,11 @@ cClientHandle::~cClientHandle() delete *m_pState->PendingNrmSendPackets.begin(); m_pState->PendingNrmSendPackets.erase( m_pState->PendingNrmSendPackets.begin() ); } + while( !m_pState->PendingLowSendPackets.empty() ) + { + delete *m_pState->PendingLowSendPackets.begin(); + m_pState->PendingLowSendPackets.erase( m_pState->PendingLowSendPackets.begin() ); + } if(m_Player) { m_Player->SetClientHandle( 0 ); -- cgit v1.2.3