1
0
Fork 0

LightingThread: Fixed a memory leak.

This commit is contained in:
Mattes D 2014-12-12 14:27:19 +01:00
parent 6cd7e52eb7
commit c8a49a6189
1 changed files with 2 additions and 2 deletions

View File

@ -226,6 +226,8 @@ void cLightingThread::Execute(void)
} // CSLock(m_CS)
LightChunk(*Item);
Item->Disable();
delete Item;
}
}
@ -324,8 +326,6 @@ void cLightingThread::LightChunk(cLightingChunkStay & a_Item)
{
a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ);
}
a_Item.Disable();
delete &a_Item;
}