diff options
author | UbitUmarov | 2015-12-09 01:43:32 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-09 01:43:32 +0000 |
commit | 447943302d491f77bcaba64061be9d008f909b7e (patch) | |
tree | cdbda0a20cdb3de423e52825b92dd8eb07d4d1f0 | |
parent | send a full update on GroupResize, not a terse (diff) | |
download | opensim-SC-447943302d491f77bcaba64061be9d008f909b7e.zip opensim-SC-447943302d491f77bcaba64061be9d008f909b7e.tar.gz opensim-SC-447943302d491f77bcaba64061be9d008f909b7e.tar.bz2 opensim-SC-447943302d491f77bcaba64061be9d008f909b7e.tar.xz |
add some missing GC.RemoveMemoryPressure()
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs | 2 |
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 | } |