aboutsummaryrefslogtreecommitdiff
path: root/files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_destroyruntime/index.html
blob: d65b41c6d6fa1ada8d0673711af876362382da5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: JS DestroyRuntime
slug: Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyRuntime
tags:
  - JSAPI Reference
  - SpiderMonkey
translation_of: Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyRuntime
---
<p>

</p><div class="breadcrumbs"><a href="/ja" title="ja">メインページ</a> » <a href="/ja/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a> »
 <a href="/ja/docs/SpiderMonkey/JSAPI_Reference" title="JSAPI_Reference">JSAPI リファレンス</a> »
 <code>JS_DestroyRuntime</code></div>

<p></p>

<p>JavaScriptランタイム環境を解放します。 <span class="comment">Frees a JavaScript runtime.</span></p>

<h2 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h2>

<pre class="eval">void <strong>JS_DestroyRuntime</strong>(<a href="/ja/JSRuntime" title="ja/JSRuntime">JSRuntime</a> *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><a href="/ja/JSRuntime" title="ja/JSRuntime">JSRuntime</a> *</code></td>
   <td>解放するランタイム<span class="comment">The runtime to destroy.</span></td>
  </tr>
 </tbody>
</table>

<h2 id=".E8.AA.AC.E6.98.8E" name=".E8.AA.AC.E6.98.8E">説明</h2>

<p><code>JS_DestroyRuntime</code>は、JavaScriptランタイム環境<code>rt</code>を解放する関数です。JSAPIの利用を終えた後は必ず<code>JS_DestroyRuntime</code>を呼び出してください。<code>JS_DestroyRuntime</code>を呼ぶことで、ガベージコレクションおよび<code><a href="/ja/JS_NewRuntime" title="ja/JS_NewRuntime">JS_NewRuntime</a></code>によって確保されたメモリ領域の解放が行われます。 <span class="comment">&lt;code&gt;JS_DestroyRuntime&lt;/code&gt; frees the specified the JavaScript runtime environment, &lt;code&gt;rt&lt;/code&gt;. Call &lt;code&gt;JS_DestroyRuntime&lt;/code&gt; after completing all other JS API calls. &lt;code&gt;JS_DestroyRuntime&lt;/code&gt; garbage collects and frees the memory previously allocated by &lt;code&gt;<a href="/ja/JS_NewRuntime">JS_NewRuntime</a>&lt;/code&gt;.</span></p>

<p>{{ LXRSearch("ident", "i", "JS_DestroyRuntime") }}</p>

<p>{{ languages( { "en": "en/JS_DestroyRuntime" } ) }}</p>