aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs2
1 files changed, 2 insertions, 0 deletions
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
399 if (m_verticesPtr != IntPtr.Zero) 399 if (m_verticesPtr != IntPtr.Zero)
400 { 400 {
401 vhandler.Free(); 401 vhandler.Free();
402 GC.RemoveMemoryPressure(Buffer.ByteLength(vertices));
402 vertices = null; 403 vertices = null;
403 m_verticesPtr = IntPtr.Zero; 404 m_verticesPtr = IntPtr.Zero;
404 } 405 }
405 if (m_indicesPtr != IntPtr.Zero) 406 if (m_indicesPtr != IntPtr.Zero)
406 { 407 {
407 ihandler.Free(); 408 ihandler.Free();
409 GC.RemoveMemoryPressure(Buffer.ByteLength(indexes));
408 indexes = null; 410 indexes = null;
409 m_indicesPtr = IntPtr.Zero; 411 m_indicesPtr = IntPtr.Zero;
410 } 412 }