mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7908 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -288,6 +288,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all(switch_core_ses
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (session->bug_codec.implementation) {
|
||||
switch_core_codec_destroy(&session->bug_codec);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
@@ -342,6 +346,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove(switch_core_session
|
||||
switch_thread_rwlock_unlock(session->bug_rwlock);
|
||||
status = switch_core_media_bug_close(&bp);
|
||||
}
|
||||
|
||||
if (!session->bugs && session->bug_codec.implementation) {
|
||||
switch_core_codec_destroy(&session->bug_codec);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user