From 2960f43782f0ec46e5ad494544a0f76c6a6741df Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 25 Jan 2013 10:12:29 +0000 Subject: Merged the usable portion of the "gens" branch. Splitting off the Composable generator and fiddling with LuaChunk / ChunkDesc is good, other generators not good yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1171 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LightingThread.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/LightingThread.cpp') 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; -- cgit v1.2.3