static struct {
switch_memory_pool_t *pool;
char *xml_handler;
- switch_event_node_t *node;
} globals;
int luaopen_freeswitch(lua_State * L);
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_lua_shutdown)
{
- switch_event_unbind(&globals.node);
return SWITCH_STATUS_SUCCESS;
}
PerlInterpreter *my_perl;
switch_memory_pool_t *pool;
char *xml_handler;
- switch_event_node_t *node;
} globals;
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)
Py_Finalize();
PyEval_ReleaseLock();
- switch_event_unbind(&globals.node);
+
return SWITCH_STATUS_UNLOAD;
}
FILE *gOutFile;
int stackDummy;
JSRuntime *rt;
- switch_event_node_t *node;
} globals;
static JSClass global_class = {
//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;