Changeset 818


Ignore:
Timestamp:
Nov 21, 2006 6:41:47 PM (17 years ago)
Author:
bennylp
Message:

Fixed mutex leak in SIP endpoint: timer heap was not destroyed

File:
1 edited

Legend:

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

    r815 r818  
    542542        endpt->ioqueue = NULL; 
    543543    } 
     544    if (endpt->timer_heap) { 
     545        pj_timer_heap_destroy(endpt->timer_heap); 
     546        endpt->timer_heap = NULL; 
     547    } 
    544548    if (endpt->mutex) { 
    545549        pj_mutex_destroy(endpt->mutex); 
     
    578582    /* Destroy ioqueue */ 
    579583    pj_ioqueue_destroy(endpt->ioqueue); 
     584 
     585    /* Destroy timer heap */ 
     586    pj_timer_heap_destroy(endpt->timer_heap); 
    580587 
    581588    /* Delete endpoint mutex. */ 
Note: See TracChangeset for help on using the changeset viewer.