diff --git a/src/mod/languages/mod_lua/mod_lua.cpp b/src/mod/languages/mod_lua/mod_lua.cpp index 44686df707..5034babc7a 100644 --- a/src/mod/languages/mod_lua/mod_lua.cpp +++ b/src/mod/languages/mod_lua/mod_lua.cpp @@ -44,7 +44,6 @@ SWITCH_MODULE_DEFINITION_EX(mod_lua, mod_lua_load, mod_lua_shutdown, NULL, SMODF static struct { switch_memory_pool_t *pool; char *xml_handler; - switch_event_node_t *node; } globals; int luaopen_freeswitch(lua_State * L); @@ -461,7 +460,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_lua_load) SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_lua_shutdown) { - switch_event_unbind(&globals.node); return SWITCH_STATUS_SUCCESS; } diff --git a/src/mod/languages/mod_perl/mod_perl.c b/src/mod/languages/mod_perl/mod_perl.c index 0616078208..0b40abf918 100644 --- a/src/mod/languages/mod_perl/mod_perl.c +++ b/src/mod/languages/mod_perl/mod_perl.c @@ -54,7 +54,6 @@ static struct { PerlInterpreter *my_perl; switch_memory_pool_t *pool; char *xml_handler; - switch_event_node_t *node; } globals; diff --git a/src/mod/languages/mod_python/mod_python.c b/src/mod/languages/mod_python/mod_python.c index e31a8275df..6aee93e579 100644 --- a/src/mod/languages/mod_python/mod_python.c +++ b/src/mod/languages/mod_python/mod_python.c @@ -57,7 +57,6 @@ SWITCH_MODULE_DEFINITION_EX(mod_python, mod_python_load, mod_python_shutdown, NU static struct { switch_memory_pool_t *pool; char *xml_handler; - switch_event_node_t *node; } globals; static void eval_some_python(const char *funcname, char *args, switch_core_session_t *session, switch_stream_handle_t *stream, switch_event_t *params, char **str) @@ -412,7 +411,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_python_shutdown) Py_Finalize(); PyEval_ReleaseLock(); - switch_event_unbind(&globals.node); + return SWITCH_STATUS_UNLOAD; } diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index 4750b8551f..65634cb44c 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -95,7 +95,6 @@ static struct { FILE *gOutFile; int stackDummy; JSRuntime *rt; - switch_event_node_t *node; } globals; static JSClass global_class = { @@ -3723,7 +3722,7 @@ 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); switch_core_hash_destroy(&module_manager.load_hash); return SWITCH_STATUS_SUCCESS;