fix invalid read in Sal destruction

This commit is contained in:
Jehan Monnier 2018-03-15 08:58:07 +01:00
parent 09025ed3c8
commit 7c27d3c9bc
2 changed files with 1 additions and 2 deletions

View file

@ -118,7 +118,6 @@ void Sal::process_request_event_cb (void *ud, const belle_sip_request_event_t *e
op->fill_cbs();
}else if (strcmp("REFER",method)==0) {
op=new SalReferOp(sal);
op->fill_cbs();
}else if (strcmp("OPTIONS",method)==0) {
resp=belle_sip_response_create_from_request(req,200);
belle_sip_provider_send_response(sal->prov,resp);

View file

@ -1388,7 +1388,7 @@ static void on_refer_received(SalOp *op, const SalAddress *refer_to) {
Sal *sal = sal_op_get_sal(op);
LinphoneCoreManager *receiver = (LinphoneCoreManager*)sal_get_user_pointer(sal);
receiver->stat.number_of_LinphoneCallRefered++;
sal_release_op(op);
}
void resend_refer_other_devices(void) {