diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index cbd99bb7c6..77dcc6fe68 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -65,7 +65,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api /// /// Contains all LSL ll-functions. This class will be in Default AppDomain. /// - public class LSL_Api : ILSL_Api, IScriptApi + public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi { protected IScriptEngine m_ScriptEngine; protected SceneObjectPart m_host; diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs index 1f8b85a6df..5b286089ae 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs @@ -6,7 +6,7 @@ using System.Text; namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime { [Serializable] - public class ScriptSponsor: ISponsor + public class ScriptSponsor : MarshalByRefObject, ISponsor { // In theory: I execute, therefore I am. // If GC collects this class then sponsorship will expire