Changeset 4529


Ignore:
Timestamp:
May 30, 2013 8:32:07 AM (11 years ago)
Author:
ming
Message:

Re #1630 (misc): Fixed various error handling (sip_transport.c and sip_endpoint.c)

Location:
pjproject/trunk/pjsip/src/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c

    r4453 r4529  
    559559        endpt->mutex = NULL; 
    560560    } 
     561    deinit_sip_parser(); 
    561562    if (endpt->mod_mutex) { 
    562563        pj_rwmutex_destroy(endpt->mod_mutex); 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r4504 r4529  
    12191219#if defined(PJ_DEBUG) && PJ_DEBUG!=0 
    12201220    status = pj_atomic_create(pool, 0, &mgr->tdata_counter); 
    1221     if (status != PJ_SUCCESS) 
    1222         return status; 
     1221    if (status != PJ_SUCCESS) { 
     1222        pj_lock_destroy(mgr->lock); 
     1223        return status; 
     1224    } 
    12231225#endif 
    12241226 
    12251227    /* Set transport state callback */ 
    1226     status = pjsip_tpmgr_set_state_cb(mgr, &tp_state_callback); 
    1227     if (status != PJ_SUCCESS) 
    1228         return status; 
     1228    pjsip_tpmgr_set_state_cb(mgr, &tp_state_callback); 
    12291229 
    12301230    PJ_LOG(5, (THIS_FILE, "Transport manager created.")); 
Note: See TracChangeset for help on using the changeset viewer.