FS-8612 #resolve [rare ivr originated calls crash due to read codec leak]

This commit is contained in:
Anthony Minessale 2015-12-04 10:33:34 -06:00
parent b52a57e751
commit ad696ccabf
1 changed files with 1 additions and 0 deletions

View File

@ -1863,6 +1863,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
if (!session) continue;
if (switch_core_codec_ready((&read_codecs[i]))) {
switch_core_session_set_read_codec(session, NULL);
switch_core_codec_destroy(&read_codecs[i]);
}