From 447943302d491f77bcaba64061be9d008f909b7e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 9 Dec 2015 01:43:32 +0000 Subject: add some missing GC.RemoveMemoryPressure() --- OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs index 97501a4..e5c2432 100644 --- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs +++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs @@ -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; } -- cgit v1.1