Changeset 2130 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Jul 13, 2008 12:24:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r2039 r2130 581 581 582 582 /* Create memory pool for application. */ 583 pjsua_var.pool = pjsua_pool_create("pjsua", 4000, 4000);583 pjsua_var.pool = pjsua_pool_create("pjsua", 1000, 1000); 584 584 585 585 PJ_ASSERT_RETURN(pjsua_var.pool, PJ_ENOMEM); … … 1070 1070 pjsua_pres_shutdown(); 1071 1071 1072 /* Unregister, if required: */ 1072 /* Destroy pool in the buddy object */ 1073 for (i=0; i<(int)PJ_ARRAY_SIZE(pjsua_var.buddy); ++i) { 1074 if (pjsua_var.buddy[i].pool) { 1075 pj_pool_release(pjsua_var.buddy[i].pool); 1076 pjsua_var.buddy[i].pool = NULL; 1077 } 1078 } 1079 1080 /* Destroy accounts */ 1073 1081 for (i=0; i<(int)PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { 1074 1082 if (!pjsua_var.acc[i].valid) … … 1077 1085 if (pjsua_var.acc[i].regc) { 1078 1086 pjsua_acc_set_registration(i, PJ_FALSE); 1087 } 1088 1089 if (pjsua_var.acc[i].pool) { 1090 pj_pool_release(pjsua_var.acc[i].pool); 1091 pjsua_var.acc[i].pool = NULL; 1079 1092 } 1080 1093 }
Note: See TracChangeset
for help on using the changeset viewer.