From f8d8366bfa6f048107d22b4b73af22803810be81 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 7 Aug 2009 03:04:06 +0100 Subject: Revert the XEngine memleak patch, it causes premature GC. This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 61dfa52..bc11709 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -3673,14 +3673,14 @@ if (m_shape != null) { return; } - //if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0) - //{ - // m_parentGroup.Scene.EventManager.OnScriptTimerEvent += handleTimerAccounting; - //} - //else - //{ - // m_parentGroup.Scene.EventManager.OnScriptTimerEvent -= handleTimerAccounting; - //} + if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0) + { + m_parentGroup.Scene.EventManager.OnScriptTimerEvent += handleTimerAccounting; + } + else + { + m_parentGroup.Scene.EventManager.OnScriptTimerEvent -= handleTimerAccounting; + } LocalFlags=(PrimFlags)objectflagupdate; -- cgit v1.1