aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch
blob: 56abe1ce10d87bb759917cee479cf2236d74728b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c
index c65b80b..6b03c17 100644
--- a/src/switch_ivr_originate.c
+++ b/src/switch_ivr_originate.c
@@ -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]);
 		}