diff options
author | UbitUmarov | 2012-07-11 03:56:39 +0100 |
---|---|---|
committer | UbitUmarov | 2012-07-11 03:56:39 +0100 |
commit | 7676ae6f744379c69f169d372c8688f49684ea6c (patch) | |
tree | 6170b07736de1b8aaba2a23abc75cb2893bec4a3 | |
parent | add some more memory information to StatsCollector (diff) | |
download | opensim-SC-7676ae6f744379c69f169d372c8688f49684ea6c.zip opensim-SC-7676ae6f744379c69f169d372c8688f49684ea6c.tar.gz opensim-SC-7676ae6f744379c69f169d372c8688f49684ea6c.tar.bz2 opensim-SC-7676ae6f744379c69f169d372c8688f49684ea6c.tar.xz |
clear released minheap items so they don't keep holding references to
objects.
-rw-r--r-- | OpenSim/Framework/MinHeap.cs | 1 |
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 | } |