]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Properly shutdown the JS runtime on unload
authorMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:25:05 +0000 (22:25 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:25:05 +0000 (22:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12631 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index 3fa0af11b2e95895a45a87b8dd5bc49076411fad..d131b85b2bf81100fb70fd8aca3260a8c369254b 100644 (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);