summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-28 17:01:15 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-28 17:01:15 +0100
commit1454d237d1c350eb4ccbf786be802893791c2f9e (patch)
tree7d0fd2c224c0bedf2a5d8a5e69c971a60b76c75f /source/cClientHandle.cpp
parent - Fixed ping displaying same for everyone, knew it was something I messed up with itr :( (diff)
downloadcuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar.gz
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar.bz2
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar.lz
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar.xz
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.tar.zst
cuberite-1454d237d1c350eb4ccbf786be802893791c2f9e.zip
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp5
1 files changed, 5 insertions, 0 deletions
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 );