Commit 23ea5d1a authored by Pekka Pessi's avatar Pekka Pessi

nua: use msg_ref() and msg_unref()

parent cb62dcb8
......@@ -683,7 +683,7 @@ int nua_base_server_report(nua_server_request_t *sr, tagi_t const *tags)
sr->sr_application = 0;
}
else if (status < 300 && !sr->sr_event) {
msg_t *msg = msg_ref_create(sr->sr_request.msg);
msg_t *msg = msg_ref(sr->sr_request.msg);
nua_event_t e = (enum nua_event_e)sr->sr_methods->sm_event;
sr->sr_event = 1;
nua_stack_event(nua, nh, msg, e, status, phrase, tags);
......
......@@ -1052,7 +1052,7 @@ static int nua_invite_client_report(nua_client_request_t *cr,
return 1;
}
response = msg_ref_create(response); /* Keep reference to contents of sip */
response = msg_ref(response); /* Keep reference to contents of sip */
if (orq != cr->cr_orq && cr->cr_orq) { /* Being restarted */
next_state = nua_callstate_calling;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment