[Freeswitch-svn] [commit] r9542 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Fri Sep 12 12:28:11 EDT 2008


Author: mikej
Date: Fri Sep 12 12:28:10 2008
New Revision: 9542

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c

Log:
Fri Sep 12 12:25:18 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * nua_stack.c: keep reference when destroying un-ACKed INVITE



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Fri Sep 12 12:28:10 2008
@@ -1 +1 @@
-Fri Sep 12 12:27:38 EDT 2008
+Fri Sep 12 12:28:02 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c	Fri Sep 12 12:28:10 2008
@@ -2188,9 +2188,12 @@
 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 @@
   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);



More information about the Freeswitch-svn mailing list