LightingThread: Fixed a memory leak.
This commit is contained in:
parent
6cd7e52eb7
commit
c8a49a6189
@ -226,6 +226,8 @@ void cLightingThread::Execute(void)
|
|||||||
} // CSLock(m_CS)
|
} // CSLock(m_CS)
|
||||||
|
|
||||||
LightChunk(*Item);
|
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.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ);
|
||||||
}
|
}
|
||||||
a_Item.Disable();
|
|
||||||
delete &a_Item;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user