Changeset 115 for pjproject


Ignore:
Timestamp:
Jan 8, 2006 11:56:17 PM (19 years ago)
Author:
bennylp
Message:

Transaction only decrements tx_data in send_msg() if return status is PJ_SUCCESS

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transaction.h

    r109 r115  
    191191/** 
    192192 * Transmit message in tdata with this transaction. It is possible to 
    193  * pass NULL in tdata for UAC transaction, which in this case the last message 
    194  * or the request message which was specified in #pjsip_tsx_create_uac()  
    195  * will be sent. 
    196  * 
    197  * This function decrements the reference counter of the transmit buffer. 
     193 * pass NULL in tdata for UAC transaction, which in this case the last  
     194 * message transmitted, or the request message which was specified when 
     195 * calling #pjsip_tsx_create_uac(), will be sent. 
     196 * 
     197 * This function decrements the reference counter of the transmit buffer 
     198 * only when it returns PJ_SUCCESS; 
    198199 * 
    199200 * @param tsx       The transaction. 
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r110 r115  
    12271227     * (consistent with other send functions. 
    12281228     */ 
    1229     pjsip_tx_data_dec_ref(tdata); 
     1229    if (status == PJ_SUCCESS) { 
     1230        pjsip_tx_data_dec_ref(tdata); 
     1231    } 
    12301232 
    12311233    return status; 
Note: See TracChangeset for help on using the changeset viewer.