add some missing GC.RemoveMemoryPressure()

LSLKeyTest
UbitUmarov 2015-12-09 01:43:32 +00:00
parent 7d8b783d31
commit 447943302d
1 changed files with 2 additions and 0 deletions

View File

@ -399,12 +399,14 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
if (m_verticesPtr != IntPtr.Zero)
{
vhandler.Free();
GC.RemoveMemoryPressure(Buffer.ByteLength(vertices));
vertices = null;
m_verticesPtr = IntPtr.Zero;
}
if (m_indicesPtr != IntPtr.Zero)
{
ihandler.Free();
GC.RemoveMemoryPressure(Buffer.ByteLength(indexes));
indexes = null;
m_indicesPtr = IntPtr.Zero;
}