提交 0f3de8bd authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8259 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e8c88aa1
......@@ -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()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论