Changeset 777


Ignore:
Timestamp:
Oct 16, 2006 9:07:19 PM (15 years ago)
Author:
bennylp
Message:

FIXED BUG: pjsip_endpt_send_request() SHOULD DELETE THE REQUEST REGARDLESS OF THE STATUS!!!

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r753 r777  
    17631763    if (status != PJ_SUCCESS) { 
    17641764        pjsua_perror(THIS_FILE, "Unable to send request", status); 
    1765         pjsip_tx_data_dec_ref(tdata); 
    17661765        return; 
    17671766    } 
  • pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c

    r676 r777  
    14031403        //should have been reported by tsx_completion_cb(). 
    14041404        //report_completion(701); 
    1405         pjsip_tx_data_dec_ref(tdata); 
     1405        //No longer necessary (r777) 
     1406        //pjsip_tx_data_dec_ref(tdata); 
    14061407    } 
    14071408    return status; 
  • pjproject/trunk/pjsip/src/pjsip/sip_util_statefull.c

    r448 r777  
    107107    PJ_TODO(IMPLEMENT_TIMEOUT_FOR_SEND_REQUEST); 
    108108 
    109     return pjsip_tsx_send_msg(tsx, NULL); 
     109    status = pjsip_tsx_send_msg(tsx, NULL); 
     110    if (status != PJ_SUCCESS) 
     111        pjsip_tx_data_dec_ref(tdata); 
     112 
     113    return status; 
    110114} 
    111115 
Note: See TracChangeset for help on using the changeset viewer.