From: Mathieu Rene Date: Mon, 16 Mar 2009 22:25:05 +0000 (+0000) Subject: Properly shutdown the JS runtime on unload X-Git-Tag: v1.0.4~1505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=293bf4851896a9ad2ac1e6c7124ca31ff590e9cf;p=thirdparty%2Ffreeswitch.git Properly shutdown the JS runtime on unload git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12631 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index 3fa0af11b2..d131b85b2b 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -3746,6 +3746,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spidermonkey_load) SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spidermonkey_shutdown) { + JS_DestroyRuntime(globals.rt); + curl_global_cleanup(); switch_event_unbind(&globals.node); switch_core_hash_destroy(&module_manager.mod_hash);