Ignore:
Timestamp:
Jan 19, 2017 7:41:25 AM (7 years ago)
Author:
nanang
Message:

Re #1513: Applied the new API pj_pool_safe_release().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r5427 r5534  
    462462    pj_ice_sess *ice = (pj_ice_sess*) obj; 
    463463 
    464     if (ice->pool) { 
    465         pj_pool_t *pool = ice->pool; 
    466         ice->pool = NULL; 
    467         pj_pool_release(pool); 
    468     } 
     464    pj_pool_safe_release(&ice->pool); 
     465 
    469466    LOG4((THIS_FILE, "ICE session %p destroyed", ice)); 
    470467} 
Note: See TracChangeset for help on using the changeset viewer.