Visit Mozilla.org

JS ShutDown

From MDC

Free all resources shared among runtimes.

[edit] Syntax

void JS_ShutDown(void);

[edit] Description

Frees all resources shared among runtimes. Call this only when no JSRuntimes exist (for example, at the end of the program, after calling JS_DestroyRuntime).

Implementation note: This cleans up memory allocated by jsdtoa.c and, in JS_THREADSAFE builds, mutexes allocated by jslock.c.

LXR ID Search for JS_ShutDown