[svn-commits] mmichelson: branch group/CCSS r229742 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 12 12:06:31 CST 2009


Author: mmichelson
Date: Thu Nov 12 12:06:27 2009
New Revision: 229742

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229742
Log:
Use AST_SCHED_REPLACE_UNREF instead of AST_SCHED_REPLACE


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=229742&r1=229741&r2=229742
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Thu Nov 12 12:06:27 2009
@@ -22545,7 +22545,10 @@
 		return -1;
 	}
 
-	AST_SCHED_REPLACE(esc_entry->sched_id, sched, expires_ms, publish_expire, esc_entry);
+	AST_SCHED_REPLACE_UNREF(esc_entry->sched_id, sched, expires_ms, publish_expire, esc_entry,
+			ao2_ref(_data, -1),
+			ao2_ref(esc_entry, -1),
+			ao2_ref(esc_entry, +1));
 
 	if (esc->callbacks->refresh_handler) {
 		res = esc->callbacks->refresh_handler(p, req, esc, esc_entry);
@@ -22565,7 +22568,10 @@
 		return -1;
 	}
 
-	AST_SCHED_REPLACE(esc_entry->sched_id, sched, expires_ms, publish_expire, esc_entry);
+	AST_SCHED_REPLACE_UNREF(esc_entry->sched_id, sched, expires_ms, publish_expire, esc_entry,
+			ao2_ref(_data, -1),
+			ao2_ref(esc_entry, -1),
+			ao2_ref(esc_entry, +1));
 
 	if (esc->callbacks->modify_handler) {
 		res = esc->callbacks->modify_handler(p, req, esc, esc_entry);




More information about the svn-commits mailing list