Changeset 175 for pjproject/trunk/pjsip/src/pjsua/pjsua_core.c
- Timestamp:
- Feb 10, 2006 2:04:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua/pjsua_core.c
r173 r175 487 487 status = init_sockets(); 488 488 if (status != PJ_SUCCESS) { 489 pj_caching_pool_destroy(&pjsua.cp);490 489 pjsua_perror("init_sockets() has returned error", status); 491 490 return status; … … 621 620 pj_thread_destroy(pjsua.threads[i]); 622 621 } 623 pj_caching_pool_destroy(&pjsua.cp);624 622 return status; 625 623 } … … 666 664 pjsua.quit_flag = 1; 667 665 668 /* Destroy sound framework: */ 666 /* Destroy sound framework: 667 * (this should be done in pjmedia_shutdown()) 668 */ 669 669 pj_snd_deinit(); 670 670 … … 673 673 for (i=0; i<pjsua.thread_cnt; ++i) { 674 674 675 pj_thread_join(pjsua.threads[i]); 676 pj_thread_destroy(pjsua.threads[i]); 675 if (pjsua.threads[i]) { 676 pj_thread_join(pjsua.threads[i]); 677 pj_thread_destroy(pjsua.threads[i]); 678 pjsua.threads[i] = NULL; 679 } 677 680 } 678 681
Note: See TracChangeset
for help on using the changeset viewer.