Changeset 5400
- Timestamp:
- Jul 28, 2016 3:17:04 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r5246 r5400 492 492 PJ_DEF(pj_status_t) pjsip_tx_data_dec_ref( pjsip_tx_data *tdata ) 493 493 { 494 pj_assert( pj_atomic_get(tdata->ref_cnt) > 0); 495 if (pj_atomic_dec_and_get(tdata->ref_cnt) <= 0) { 494 pj_atomic_value_t ref_cnt; 495 496 PJ_ASSERT_RETURN(tdata && tdata->ref_cnt, PJ_EINVAL); 497 498 ref_cnt = pj_atomic_dec_and_get(tdata->ref_cnt); 499 pj_assert( ref_cnt >= 0); 500 if (ref_cnt == 0) { 496 501 tx_data_destroy(tdata); 497 502 return PJSIP_EBUFDESTROYED;
Note: See TracChangeset
for help on using the changeset viewer.