aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2012-07-11 03:56:39 +0100
committerUbitUmarov2012-07-11 03:56:39 +0100
commit7676ae6f744379c69f169d372c8688f49684ea6c (patch)
tree6170b07736de1b8aaba2a23abc75cb2893bec4a3
parentadd some more memory information to StatsCollector (diff)
downloadopensim-SC_OLD-7676ae6f744379c69f169d372c8688f49684ea6c.zip
opensim-SC_OLD-7676ae6f744379c69f169d372c8688f49684ea6c.tar.gz
opensim-SC_OLD-7676ae6f744379c69f169d372c8688f49684ea6c.tar.bz2
opensim-SC_OLD-7676ae6f744379c69f169d372c8688f49684ea6c.tar.xz
clear released minheap items so they don't keep holding references to
objects.
-rw-r--r--OpenSim/Framework/MinHeap.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Framework/MinHeap.cs b/OpenSim/Framework/MinHeap.cs
index 33d0364..f2218c9 100644
--- a/OpenSim/Framework/MinHeap.cs
+++ b/OpenSim/Framework/MinHeap.cs
@@ -285,6 +285,7 @@ namespace OpenSim.Framework
285 if (--this.size > 0 && index != this.size) 285 if (--this.size > 0 && index != this.size)
286 { 286 {
287 Set(this.items[this.size], index); 287 Set(this.items[this.size], index);
288 this.items[this.size].Clear();
288 if (!BubbleUp(index)) 289 if (!BubbleUp(index))
289 BubbleDown(index); 290 BubbleDown(index);
290 } 291 }