forked from Mirrors/freeswitch
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8259 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e8c88aa124
commit
0f3de8bdf0
@ -21,10 +21,16 @@ Session::Session(switch_core_session_t *new_session) : CoreSession(new_session)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user