Ignore:
Timestamp:
Jan 19, 2017 7:41:25 AM (4 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/turn_session.c

    r5481 r5534  
    329329    /* Destroy pool */ 
    330330    if (sess->pool) { 
    331         pj_pool_t *pool = sess->pool; 
    332  
    333331        PJ_LOG(4,(sess->obj_name, "TURN client session destroyed")); 
    334  
    335         sess->pool = NULL; 
    336         pj_pool_release(pool); 
     332        pj_pool_safe_release(&sess->pool); 
    337333    } 
    338334} 
Note: See TracChangeset for help on using the changeset viewer.