Changeset 810


Ignore:
Timestamp:
Nov 21, 2006 8:37:17 AM (14 years ago)
Author:
bennylp
Message:

Fixed handles leak in SIP endpoint: ioqueue is not freed, causing PJ_IOQUEUE_MAX_HANDLES mutex to leak during program exits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c

    r797 r810  
    538538        endpt->transport_mgr = NULL; 
    539539    } 
     540    if (endpt->ioqueue) { 
     541        pj_ioqueue_destroy(endpt->ioqueue); 
     542        endpt->ioqueue = NULL; 
     543    } 
    540544    if (endpt->mutex) { 
    541545        pj_mutex_destroy(endpt->mutex); 
     
    571575    /* Shutdown and destroy all transports. */ 
    572576    pjsip_tpmgr_destroy(endpt->transport_mgr); 
     577 
     578    /* Destroy ioqueue */ 
     579    pj_ioqueue_destroy(endpt->ioqueue); 
    573580 
    574581    /* Delete endpoint mutex. */ 
Note: See TracChangeset for help on using the changeset viewer.