[Freeswitch-svn] [commit] r12631 - freeswitch/trunk/src/mod/languages/mod_spidermonkey
FreeSWITCH SVN
mrene at freeswitch.org
Mon Mar 16 15:25:05 PDT 2009
Author: mrene
Date: Mon Mar 16 17:25:05 2009
New Revision: 12631
Log:
Properly shutdown the JS runtime on unload
Modified:
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c Mon Mar 16 17:25:05 2009
@@ -3746,6 +3746,8 @@
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);
More information about the Freeswitch-svn
mailing list