- Timestamp:
- Dec 10, 2009 5:16:23 AM (15 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r2936 r3031 855 855 PJ_DEF(void) pjsip_dlg_dec_lock(pjsip_dialog *dlg) 856 856 { 857 PJ_ASSERT_ON_FAIL(dlg!=NULL, return); 858 857 859 PJ_LOG(6,(dlg->obj_name, "Entering pjsip_dlg_dec_lock(), sess_count=%d", 858 860 dlg->sess_count)); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r3021 r3031 508 508 pjsua_var.buddy[buddy_id].uri.slen = 0; 509 509 pjsua_var.buddy_cnt--; 510 511 /* Clear timer */ 512 if (pjsua_var.buddy[buddy_id].timer.id) { 513 pjsua_cancel_timer(&pjsua_var.buddy[buddy_id].timer); 514 pjsua_var.buddy[buddy_id].timer.id = PJ_FALSE; 515 } 510 516 511 517 /* Reset buddy struct */ … … 1729 1735 * referencing it 1730 1736 */ 1731 pjsip_dlg_dec_lock(buddy->dlg);1737 if (buddy->dlg) pjsip_dlg_dec_lock(buddy->dlg); 1732 1738 if (tmp_pool) pj_pool_release(tmp_pool); 1733 1739 return; … … 1762 1768 status = pjsip_pres_initiate(buddy->sub, -1, &tdata); 1763 1769 if (status != PJ_SUCCESS) { 1764 pjsip_dlg_dec_lock(buddy->dlg);1770 if (buddy->dlg) pjsip_dlg_dec_lock(buddy->dlg); 1765 1771 if (buddy->sub) { 1766 1772 pjsip_pres_terminate(buddy->sub, PJ_FALSE); … … 1777 1783 status = pjsip_pres_send_request(buddy->sub, tdata); 1778 1784 if (status != PJ_SUCCESS) { 1779 pjsip_dlg_dec_lock(buddy->dlg);1785 if (buddy->dlg) pjsip_dlg_dec_lock(buddy->dlg); 1780 1786 if (buddy->sub) { 1781 1787 pjsip_pres_terminate(buddy->sub, PJ_FALSE); … … 2010 2016 pjsua_perror(THIS_FILE, "Error creating MWI subscription", status); 2011 2017 if (tmp_pool) pj_pool_release(tmp_pool); 2012 pjsip_dlg_dec_lock(acc->mwi_dlg);2018 if (acc->mwi_dlg) pjsip_dlg_dec_lock(acc->mwi_dlg); 2013 2019 return; 2014 2020 } … … 2042 2048 status = pjsip_mwi_initiate(acc->mwi_sub, -1, &tdata); 2043 2049 if (status != PJ_SUCCESS) { 2044 pjsip_dlg_dec_lock(acc->mwi_dlg);2050 if (acc->mwi_dlg) pjsip_dlg_dec_lock(acc->mwi_dlg); 2045 2051 if (acc->mwi_sub) { 2046 2052 pjsip_pres_terminate(acc->mwi_sub, PJ_FALSE); … … 2058 2064 status = pjsip_pres_send_request(acc->mwi_sub, tdata); 2059 2065 if (status != PJ_SUCCESS) { 2060 pjsip_dlg_dec_lock(acc->mwi_dlg);2066 if (acc->mwi_dlg) pjsip_dlg_dec_lock(acc->mwi_dlg); 2061 2067 if (acc->mwi_sub) { 2062 2068 pjsip_pres_terminate(acc->mwi_sub, PJ_FALSE);
Note: See TracChangeset
for help on using the changeset viewer.