From 7676ae6f744379c69f169d372c8688f49684ea6c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Jul 2012 03:56:39 +0100 Subject: [PATCH] clear released minheap items so they don't keep holding references to objects. --- OpenSim/Framework/MinHeap.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenSim/Framework/MinHeap.cs b/OpenSim/Framework/MinHeap.cs index 33d0364b6e..f2218c905a 100644 --- a/OpenSim/Framework/MinHeap.cs +++ b/OpenSim/Framework/MinHeap.cs @@ -285,6 +285,7 @@ namespace OpenSim.Framework if (--this.size > 0 && index != this.size) { Set(this.items[this.size], index); + this.items[this.size].Clear(); if (!BubbleUp(index)) BubbleDown(index); }