prevent double free
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13195 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
41f7e28468
commit
eae616ef40
|
@ -262,10 +262,9 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
|
|||
|
||||
end:
|
||||
|
||||
if (sub_state == nua_substate_terminated) {
|
||||
sofia_private_free(sofia_private);
|
||||
nua_handle_bind(nh, NULL);
|
||||
nua_handle_destroy(nh);
|
||||
if (sub_state == nua_substate_terminated && sofia_private != &mod_sofia_globals.destroy_private) {
|
||||
sofia_private->destroy_nh = 1;
|
||||
sofia_private->destroy_me = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue