Bug 825086: Removing errant free of body parts when encoding fails r=ekr

This commit is contained in:
Adam Roach [:abr] 2013-01-02 15:06:12 -06:00
Родитель 6bdee6d353
Коммит 0df7ae1002
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -2961,7 +2961,6 @@ fsmdef_ev_createoffer (sm_event_t *event) {
cause = gsmsdp_encode_sdp_and_update_version(dcb, &msg_body);
if (cause != CC_CAUSE_OK) {
cc_free_msg_body_parts(&msg_body);
ui_create_offer(evCreateOfferError, line, call_id,
dcb->caller_id.call_instance_id, strlib_empty());
FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR));
@ -3096,7 +3095,6 @@ fsmdef_ev_createanswer (sm_event_t *event) {
cause = gsmsdp_encode_sdp_and_update_version(dcb, &msg_body);
if (cause != CC_CAUSE_OK) {
cc_free_msg_body_parts(&msg_body);
ui_create_answer(evCreateAnswerError, line, call_id,
dcb->caller_id.call_instance_id, strlib_empty());
FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR));
@ -3151,7 +3149,6 @@ fsmdef_ev_setlocaldesc(sm_event_t *event) {
if (JSEP_OFFER == action) {
cause = gsmsdp_encode_sdp(dcb->sdp, &msg_body);
if (cause != CC_CAUSE_OK) {
cc_free_msg_body_parts(&msg_body);
FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR));
ui_set_local_description(evSetLocalDescError, line, call_id,
dcb->caller_id.call_instance_id, strlib_empty(),
@ -3176,7 +3173,6 @@ fsmdef_ev_setlocaldesc(sm_event_t *event) {
/* compare SDP generated from CreateAnswer */
cause = gsmsdp_encode_sdp(dcb->sdp, &msg_body);
if (cause != CC_CAUSE_OK) {
cc_free_msg_body_parts(&msg_body);
FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR));
ui_set_local_description(evSetLocalDescError, line, call_id,
dcb->caller_id.call_instance_id, strlib_empty(),