JS_DestroyRuntime

  • Revision slug: SpiderMonkey/JSAPI_Reference/JS_DestroyRuntime
  • Revision title: JS_DestroyRuntime
  • Revision id: 147089
  • Created:
  • Creator: MMondor
  • Is current revision? No
  • Comment

Revision Content

<title>JS_DestroyRuntime</title> {{template.Jsapiref()}}

Summary

Frees a JavaScript runtime.

Syntax

void JS_DestroyRuntime(JSRuntime *rt);
Name Type Description
rt JSRuntime * Pointer to a JS runtime to destroy.

Description

JS_DestroyRuntime frees the specified the JavaScript runtime environment, rt. Call JS_DestroyRuntime after completing all other JS API calls. JS_DestroyRuntime garbage collects and frees the memory previously allocated by {{mediawiki.internal('JS_NewRuntime\n', "en")}}.

See Also

Groups Functions
Documents {{template.LXRSearch("ident", "i", "JS_DestroyRuntime", "LXR ID Search")}}
Entries

JS_NewRuntime

Revision Source

<p> &lt;title&gt;JS_DestroyRuntime&lt;/title&gt;
{{template.Jsapiref()}}
</p>
<h2 name="Summary"> Summary </h2>
<p>Frees a JavaScript runtime.
</p>
<h2 name="Syntax"> Syntax </h2>
<pre>void JS_DestroyRuntime(JSRuntime *rt);
</pre>
<table class="fullwidth-table">
<tbody><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>rt</code></td>
<td><code>JSRuntime *</code></td>
<td>Pointer to a JS runtime to destroy.</td>
</tr>
</tbody></table>
<h2 name="Description"> Description </h2>
<p><code>JS_DestroyRuntime</code> frees the specified the JavaScript runtime environment, <code>rt</code>. Call <code>JS_DestroyRuntime</code> after completing all other JS API calls. <code>JS_DestroyRuntime</code> garbage collects and frees the memory previously allocated by <code>{{mediawiki.internal('JS_NewRuntime\n', "en")}}</code>.
</p>
<h2 name="See_Also"> See Also </h2>
<table class="fullwidth-table">
<tbody><tr>
<td>Groups</td>
<td><a href="en/JSAPI_Reference#Functions">Functions</a></td>
</tr>
<tr>
<td>Documents</td>
<td>{{template.LXRSearch("ident", "i", "JS_DestroyRuntime", "LXR ID Search")}}</td>
</tr>
<tr>
<td>Entries</td>
<td>
<p><a href="en/JS_NewRuntime">JS_NewRuntime</a>
</p>
</td>
</tr>
</tbody></table>
Revert to this revision