- Timestamp:
- Dec 13, 2013 11:44:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/endpoint.cpp
r4678 r4692 384 384 } 385 385 386 delete writer; 387 388 while(mediaList.size() > 0) { 389 AudioMedia *cur_media = mediaList[0]; 390 delete cur_media; /* this will remove itself from the list */ 391 } 392 393 clearCodecInfoList(); 394 386 395 try { 387 396 libDestroy(); … … 390 399 PJ_UNUSED_ARG(err); 391 400 } 392 delete writer;393 394 while(mediaList.size() > 0) {395 AudioMedia *cur_media = mediaList[0];396 delete cur_media; /* this will remove itself from the list */397 }398 399 clearCodecInfoList();400 401 401 402 instance_ = NULL; … … 1567 1568 PJSUA2_CHECK_EXPR( pjsua_enum_codecs(pj_codec, &count) ); 1568 1569 1570 pj_enter_critical_section(); 1569 1571 clearCodecInfoList(); 1570 1571 pj_enter_critical_section();1572 1572 for (unsigned i=0;(i<count && i<MAX_CODEC_NUM);++i) { 1573 1573 CodecInfo *codec_info = new CodecInfo; … … 1608 1608 void Endpoint::clearCodecInfoList() 1609 1609 { 1610 pj_enter_critical_section();1611 1610 for (unsigned i=0;i<codecInfoList.size();++i) { 1612 1611 delete codecInfoList[i]; 1613 1612 } 1614 1613 codecInfoList.clear(); 1615 pj_leave_critical_section(); 1616 } 1614 }
Note: See TracChangeset
for help on using the changeset viewer.