[Freeswitch-svn] [commit] r8259 - freeswitch/trunk/src/mod/languages/mod_lua
Freeswitch SVN
anthm at freeswitch.org
Sat May 3 12:36:13 EDT 2008
Author: anthm
Date: Sat May 3 12:36:12 2008
New Revision: 8259
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp
Log:
update
Modified: freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp Sat May 3 12:36:12 2008
@@ -21,10 +21,16 @@
static switch_status_t lua_hanguphook(switch_core_session_t *session_hungup);
Session::~Session()
{
+
+ if (hangup_func_str) {
+ if (session) {
+ switch_core_event_hook_remove_state_change(session, lua_hanguphook);
+ }
+ free(hangup_func_str);
+ }
+
switch_safe_free(cb_function);
switch_safe_free(cb_arg);
- switch_safe_free(hangup_func_str);
- switch_core_event_hook_remove_state_change(session, lua_hanguphook);
}
bool Session::begin_allow_threads()
More information about the Freeswitch-svn
mailing list