Talk:LlReleaseURL
Jump to navigation
Jump to search
Example script has a bug on releasing URL
As far as I can see, there is a bug in this code:
<lsl>
else if (method == URL_REQUEST_GRANTED) { key owner = llGetOwner(); llLoadURL(owner, "Click to visit my URL!", body); // check every 5 mins for dropped URL llSetTimerEvent(300.0); }
</lsl>
because the variable url never gets assigned; so it's useless to release it later.
This, I believe, should be written as:
<lsl>
else if (method == URL_REQUEST_GRANTED) { key owner = llGetOwner(); url = body; llLoadURL(owner, "Click to visit my URL!", url); // check every 5 mins for dropped URL llSetTimerEvent(300.0); }
</lsl>
Gwyneth Llewelyn 11:44, 19 May 2014 (PDT)