mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
FS-8612 #resolve [rare ivr originated calls crash due to read codec leak]
This commit is contained in:
parent
b52a57e751
commit
ad696ccabf
@ -1863,6 +1863,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
|
|||||||
if (!session) continue;
|
if (!session) continue;
|
||||||
|
|
||||||
if (switch_core_codec_ready((&read_codecs[i]))) {
|
if (switch_core_codec_ready((&read_codecs[i]))) {
|
||||||
|
switch_core_session_set_read_codec(session, NULL);
|
||||||
switch_core_codec_destroy(&read_codecs[i]);
|
switch_core_codec_destroy(&read_codecs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user