mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 03:34:15 +00:00
Reset the whole transcoding session memory on destroy
Again, this shouldn't fix anything, but should make debugging easier. FS-8312
This commit is contained in:
1 parent
f3ac24bb66
commit
35259cf36c
1 file changed
+1
-2
@@ -864,14 +864,13 @@ static switch_status_t switch_sangoma_destroy(switch_codec_t *codec)
|
||||
|
||||
if (sess->encoder.txrtp) {
|
||||
sngtc_free_transcoding_session(&sess->encoder.reply);
|
||||
memset(&sess->encoder, 0, sizeof(sess->encoder));
|
||||
}
|
||||
if (sess->decoder.txrtp) {
|
||||
sngtc_free_transcoding_session(&sess->decoder.reply);
|
||||
memset(&sess->decoder, 0, sizeof(sess->decoder));
|
||||
}
|
||||
|
||||
switch_core_hash_delete(g_sessions_hash, sess->hashkey);
|
||||
memset(sess, 0, sizeof(*sess));
|
||||
|
||||
switch_mutex_unlock(g_sessions_lock);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
||||
Reference in new issue
Block a user