summaryrefslogtreecommitdiffstats
path: root/source/LightingThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/LightingThread.cpp4
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;