Fri Sep 12 12:25:18 EDT 2008 Pekka Pessi <first.last@nokia.com>

* nua_stack.c: keep reference when destroying un-ACKed INVITE



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9542 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-09-12 16:28:10 +00:00
parent 25d5205abc
commit 1f3b34ae96
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
Fri Sep 12 12:27:38 EDT 2008
Fri Sep 12 12:28:02 EDT 2008

View File

@ -2188,9 +2188,12 @@ static int
nua_client_request_complete(nua_client_request_t *cr)
{
if (cr->cr_orq) {
nua_client_request_ref(cr);
if (cr && cr->cr_methods->crm_complete)
cr->cr_methods->crm_complete(cr);
nua_client_request_clean(cr);
if (nua_client_request_unref(cr))
return 1;
}
return nua_client_request_remove(cr);
@ -2224,8 +2227,7 @@ nua_client_request_destroy(nua_client_request_t *cr)
cr->cr_msg = NULL, cr->cr_sip = NULL;
if (cr->cr_orq)
nta_outgoing_destroy(cr->cr_orq);
cr->cr_orq = NULL;
nta_outgoing_destroy(cr->cr_orq), cr->cr_orq = NULL;
if (cr->cr_target)
su_free(nh->nh_home, cr->cr_target);