Changeset 4037 for pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_reg.c
- Timestamp:
- Apr 11, 2012 9:41:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_reg.c
r3553 r4037 441 441 } 442 442 443 /* Release transport */ 444 PJ_DEF(pj_status_t) pjsip_regc_release_transport(pjsip_regc *regc) 445 { 446 PJ_ASSERT_RETURN(regc, PJ_EINVAL); 447 if (regc->last_transport) { 448 pjsip_transport_dec_ref(regc->last_transport); 449 regc->last_transport = NULL; 450 } 451 return PJ_SUCCESS; 452 } 453 443 454 444 455 PJ_DEF(pj_status_t) pjsip_regc_add_headers( pjsip_regc *regc, … … 1270 1281 1271 1282 /* Get last transport used and add reference to it */ 1272 if (tdata->tp_info.transport != regc->last_transport) { 1283 if (tdata->tp_info.transport != regc->last_transport && 1284 status==PJ_SUCCESS) 1285 { 1273 1286 if (regc->last_transport) { 1274 1287 pjsip_transport_dec_ref(regc->last_transport);
Note: See TracChangeset
for help on using the changeset viewer.