[Freeswitch-trunk] [commit] r12862 - in freeswitch/trunk/src/mod/languages: mod_lua mod_perl mod_python mod_spidermonkey
FreeSWITCH SVN
brian at freeswitch.org
Tue Mar 31 20:17:27 PDT 2009
Author: brian
Date: Tue Mar 31 22:17:27 2009
New Revision: 12862
Log:
remove lingering code that is not needed anymore
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp
freeswitch/trunk/src/mod/languages/mod_perl/mod_perl.c
freeswitch/trunk/src/mod/languages/mod_python/mod_python.c
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp Tue Mar 31 22:17:27 2009
@@ -44,7 +44,6 @@
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_SHUTDOWN_FUNCTION(mod_lua_shutdown)
{
- switch_event_unbind(&globals.node);
return SWITCH_STATUS_SUCCESS;
}
Modified: freeswitch/trunk/src/mod/languages/mod_perl/mod_perl.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_perl/mod_perl.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_perl/mod_perl.c Tue Mar 31 22:17:27 2009
@@ -54,7 +54,6 @@
PerlInterpreter *my_perl;
switch_memory_pool_t *pool;
char *xml_handler;
- switch_event_node_t *node;
} globals;
Modified: freeswitch/trunk/src/mod/languages/mod_python/mod_python.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/mod_python.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/mod_python.c Tue Mar 31 22:17:27 2009
@@ -57,7 +57,6 @@
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 @@
Py_Finalize();
PyEval_ReleaseLock();
- switch_event_unbind(&globals.node);
+
return SWITCH_STATUS_UNLOAD;
}
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 Tue Mar 31 22:17:27 2009
@@ -95,7 +95,6 @@
FILE *gOutFile;
int stackDummy;
JSRuntime *rt;
- switch_event_node_t *node;
} globals;
static JSClass global_class = {
@@ -3723,7 +3722,7 @@
//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;
More information about the Freeswitch-trunk
mailing list