From a50a8376d60e7ff4ab80b04d00e143ee79c4245c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 9 Feb 2008 01:37:53 +0000 Subject: * In the most basic situations, ClientView and ScenePresence no longer leak memory * However, I'm no longer sure they were even a big contributory factor (to this particular leak, there are other causes of other leaks). I need better measurement techniques * Removed most of my debugging gawp --- OpenSim/Region/Environment/Modules/TextureDownloadModule.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/TextureDownloadModule.cs') diff --git a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs index 7529111..4f877be 100644 --- a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs @@ -146,9 +146,12 @@ namespace OpenSim.Region.Environment.Modules public void ProcessTextureSenders() { + TextureSender sender = null; + while (true) { - TextureSender sender = m_queueSenders.Dequeue(); + sender = m_queueSenders.Dequeue(); + if (sender.Cancel) { TextureSent(sender); @@ -168,7 +171,10 @@ namespace OpenSim.Region.Environment.Modules } } - m_log.Info(String.Format("[TEXTURE DOWNLOAD] Texture sender queue size: {0}", m_queueSenders.Count())); + // Make sure that any sender we currently have can get garbage collected + sender = null; + + //m_log.Info(String.Format("[TEXTURE DOWNLOAD] Texture sender queue size: {0}", m_queueSenders.Count())); } } -- cgit v1.1