git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9044 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-15 19:14:15 +00:00
parent 52126c2b31
commit ac1119e64b
1 changed files with 3 additions and 1 deletions

View File

@ -1401,7 +1401,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
switch_buffer_destroy(&ringback.audio_buffer);
}
switch_core_session_reset(session, SWITCH_FALSE);
if (session) {
switch_core_session_reset(session, SWITCH_FALSE);
}
if (write_codec.implementation) {
switch_core_codec_destroy(&write_codec);