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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/legacy_dev.c

    r3553 r5534  
    142142 
    143143    if (status == PJ_SUCCESS) { 
    144         pj_pool_t *pool = wf->pool; 
    145         wf->pool = NULL; 
    146         pj_pool_release(pool); 
     144        pj_pool_safe_release(&wf->pool); 
    147145    } 
    148146 
     
    456454 
    457455    if (status == PJ_SUCCESS) { 
    458         pj_pool_t *pool = strm->pool; 
    459  
    460         strm->pool = NULL; 
    461         pj_pool_release(pool); 
     456        pj_pool_safe_release(&strm->pool); 
    462457    } 
    463458 
Note: See TracChangeset for help on using the changeset viewer.