Skip to content
Browse files

Release http-in URLs when llResetScript is called

  • Loading branch information...
1 parent 4adb347 commit 926c0b90a17716ae3f83feaa1703703326bc6434 @MelanieT MelanieT committed Aug 7, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
View
6 OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -183,6 +183,12 @@ public void state(string newState)
public void llResetScript()
{
m_host.AddScriptLPS(1);
+
+ // We need to tell the URL module, if we hav one, to release
+ // the allocated URLs
+ if (m_UrlModule != null)
+ m_UrlModule.ScriptRemoved(m_item.ItemID);
+
m_ScriptEngine.ApiResetScript(m_item.ItemID);
}

0 comments on commit 926c0b9

Please sign in to comment.
Something went wrong with that request. Please try again.