Changeset 2133


Ignore:
Timestamp:
Jul 14, 2008 9:32:14 AM (11 years ago)
Author:
bennylp
Message:

Ticket #566: TURN session in PJSUA-LIB is not properly destroyed causing possible memory and handle leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r2130 r2133  
    10921092            } 
    10931093        } 
    1094  
    1095         /* Wait for some time to allow unregistration to complete: */ 
     1094    } 
     1095 
     1096    /* Destroy media */ 
     1097    pjsua_media_subsys_destroy(); 
     1098 
     1099    /* Destroy endpoint. */ 
     1100    if (pjsua_var.endpt) { 
     1101        /* Wait for some time to allow unregistration and ICE/TURN 
     1102         * transports shutdown to complete:  
     1103        */ 
    10961104        PJ_LOG(4,(THIS_FILE, "Shutting down...")); 
    10971105        busy_sleep(1000); 
    1098     } 
    1099  
    1100     /* Destroy media */ 
    1101     pjsua_media_subsys_destroy(); 
    1102  
    1103     /* Destroy endpoint. */ 
    1104     if (pjsua_var.endpt) { 
     1106 
    11051107        pjsip_endpt_destroy(pjsua_var.endpt); 
    11061108        pjsua_var.endpt = NULL; 
Note: See TracChangeset for help on using the changeset viewer.