Ignore:
Timestamp:
Jan 2, 2008 8:27:03 AM (16 years ago)
Author:
bennylp
Message:

Related to ticket #437: optimize the stack usage of pjsua-lib

File:
1 edited

Legend:

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

    r1622 r1655  
    865865    pjsua_acc *acc; 
    866866    pj_str_t contact; 
    867     char contact_buf[1024]; 
    868867    pj_pool_t *pool; 
    869868    pj_status_t status; 
     
    894893    } 
    895894 
    896     pool = pj_pool_create_on_buf(NULL, contact_buf, sizeof(contact_buf)); 
     895    pool = pjsua_pool_create("tmpregc", 512, 512); 
    897896    status = pjsua_acc_create_uac_contact( pool, &contact, 
    898897                                           acc_id, &acc->cfg.reg_uri); 
     
    902901                     status); 
    903902        pjsip_regc_destroy(acc->regc); 
     903        pj_pool_release(pool); 
    904904        acc->regc = NULL; 
    905905        return status; 
     
    917917                     status); 
    918918        pjsip_regc_destroy(acc->regc); 
     919        pj_pool_release(pool); 
    919920        acc->regc = NULL; 
    920921        return status; 
     
    953954        pjsip_generic_string_hdr *h; 
    954955 
    955         pool = pj_pool_create_on_buf(NULL, contact_buf, sizeof(contact_buf)); 
    956956        pj_list_init(&hdr_list); 
    957957 
     
    962962        pjsip_regc_add_headers(acc->regc, &hdr_list); 
    963963    } 
     964 
     965    pj_pool_release(pool); 
    964966 
    965967    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.