Properly shutdown the JS runtime on unload

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12631 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-16 22:25:05 +00:00
parent 8d9f4cd156
commit 293bf48518
1 changed files with 2 additions and 0 deletions

View File

@ -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);