Ignore:
Timestamp:
Mar 28, 2012 7:32:42 AM (7 years ago)
Author:
nanang
Message:

Re #1466: Moved down the atexit callbacks execution in pjmedia & pjsip endpoints to the very end of endpoint destroy sequence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/endpoint.c

    r3986 r3988  
    220220    } 
    221221 
     222    /* Destroy internal ioqueue */ 
     223    if (endpt->ioqueue && endpt->own_ioqueue) { 
     224        pj_ioqueue_destroy(endpt->ioqueue); 
     225        endpt->ioqueue = NULL; 
     226    } 
     227 
     228    endpt->pf = NULL; 
     229 
     230    pjmedia_codec_mgr_destroy(&endpt->codec_mgr); 
     231    pjmedia_aud_subsys_shutdown(); 
     232 
    222233    /* Call all registered exit callbacks */ 
    223234    ecb = endpt->exit_cb_list.next; 
     
    227238    } 
    228239 
    229     /* Destroy internal ioqueue */ 
    230     if (endpt->ioqueue && endpt->own_ioqueue) { 
    231         pj_ioqueue_destroy(endpt->ioqueue); 
    232         endpt->ioqueue = NULL; 
    233     } 
    234  
    235     endpt->pf = NULL; 
    236  
    237     pjmedia_codec_mgr_destroy(&endpt->codec_mgr); 
    238     pjmedia_aud_subsys_shutdown(); 
    239240    pj_pool_release (endpt->pool); 
    240241 
Note: See TracChangeset for help on using the changeset viewer.