Changeset 6049


Ignore:
Timestamp:
Aug 5, 2019 12:40:56 PM (2 months ago)
Author:
riza
Message:

Re #2210 (misc): Release pool last when destroying android video dev factory.
Thanks to Pandia Rajan for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/android_dev.c

    r5810 r6049  
    451451    jni_deinit_ids(); 
    452452     
     453    pool = f->dev_pool; 
     454    f->dev_pool = NULL;     
     455    pj_pool_safe_release(&pool); 
     456     
    453457    pool = f->pool; 
    454458    f->pool = NULL; 
    455     if (pool) 
    456         pj_pool_release(pool); 
    457      
    458     pool = f->dev_pool; 
    459     f->dev_pool = NULL; 
    460     if (pool) 
    461         pj_pool_release(pool); 
     459    pj_pool_safe_release(&pool);          
    462460 
    463461    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.