mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
fix bad unref during out of subscribe notify
This commit is contained in:
parent
6a033f8a64
commit
8cdbcae27a
1 changed files with 2 additions and 1 deletions
|
|
@ -123,10 +123,11 @@ static void handle_notify(SalOp *op, belle_sip_request_t *req, const char *event
|
|||
ms_message("Outgoing subscription terminated by remote [%s]",sal_op_get_to(op));
|
||||
} else
|
||||
sub_state=SalSubscribeActive;
|
||||
|
||||
sal_op_ref(op);
|
||||
op->base.root->callbacks.notify(op,sub_state,eventname,body);
|
||||
resp=sal_op_create_response_from_request(op,req,200);
|
||||
belle_sip_server_transaction_send_response(server_transaction,resp);
|
||||
sal_op_unref(op);
|
||||
}
|
||||
|
||||
static void subscribe_process_request_event(void *op_base, const belle_sip_request_event_t *event) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue