git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2328 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-08-18 19:29:42 +00:00
parent 6ccb60c25c
commit 9018439d47
1 changed files with 4 additions and 2 deletions

View File

@ -201,8 +201,10 @@ static void terminate_session(switch_core_session_t **session, switch_call_cause
if (state > CS_INIT && state < CS_HANGUP) {
channel_on_hangup(*session);
}
ldl_session_set_private(tech_pvt->dlsession, NULL);
if (tech_pvt->dlsession) {
ldl_session_set_private(tech_pvt->dlsession, NULL);
}
switch_core_session_destroy(session);
}
}