diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-25 11:12:29 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-25 11:12:29 +0100 |
commit | 2960f43782f0ec46e5ad494544a0f76c6a6741df (patch) | |
tree | c0cfc25589990f7f85d01002db95dd0093e84d71 /source/LightingThread.cpp | |
parent | AnvilStats: ignoring png files (diff) | |
download | cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.gz cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.bz2 cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.lz cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.xz cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.zst cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.zip |
Diffstat (limited to 'source/LightingThread.cpp')
-rw-r--r-- | source/LightingThread.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/LightingThread.cpp b/source/LightingThread.cpp index 94648164e..5172887ba 100644 --- a/source/LightingThread.cpp +++ b/source/LightingThread.cpp @@ -109,6 +109,10 @@ void cLightingThread::Stop(void) { { cCSLock Lock(m_CS); + for (sItems::iterator itr = m_Queue.begin(), end = m_Queue.end(); itr != end; ++itr) + { + delete itr->m_ChunkStay; + } m_Queue.clear(); } m_ShouldTerminate = true; |