File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -709,18 +709,14 @@ PJ_DEF(pj_status_t) pjsua_acc_del(pjsua_acc_id acc_id)
709
709
/* Delete server presence subscription */
710
710
pjsua_pres_delete_acc (acc_id , 0 );
711
711
712
- /* Release account pool */
712
+ /* Release & wipe account pool */
713
713
if (acc -> pool ) {
714
- pj_pool_release (acc -> pool );
715
- acc -> pool = NULL ;
714
+ pj_pool_secure_release (& acc -> pool );
716
715
}
717
716
718
717
/* Invalidate */
719
- acc -> valid = PJ_FALSE ;
720
- pj_bzero (& acc -> via_addr , sizeof (acc -> via_addr ));
721
- acc -> via_tp = NULL ;
722
- acc -> next_rtp_port = 0 ;
723
- acc -> ip_change_op = PJSUA_IP_CHANGE_OP_NULL ;
718
+ pj_bzero (acc , sizeof (* acc ));
719
+ acc -> index = acc_id ;
724
720
725
721
/* Remove from array */
726
722
for (i = 0 ; i < pjsua_var .acc_cnt ; ++ i ) {
You can’t perform that action at this time.
0 commit comments