Visit Mozilla.org

JS DestroyRuntime

From MDC

Frees a JavaScript runtime.

[edit] Syntax

void JS_DestroyRuntime(JSRuntime *rt);
Name Type Description
rt JSRuntime * The runtime to destroy.

[edit] 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 JS_NewRuntime.

LXR ID Search for JS_DestroyRuntime