[svn-commits] twilson: branch twilson/calendaring r167019 - /team/twilson/calendaring/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 31 14:53:17 CST 2008


Author: twilson
Date: Wed Dec 31 14:53:16 2008
New Revision: 167019

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167019
Log:
Add a little note to destroy_event explaining why we don't unref the event

Modified:
    team/twilson/calendaring/main/calendar.c

Modified: team/twilson/calendaring/main/calendar.c
URL: http://svn.digium.com/view/asterisk/team/twilson/calendaring/main/calendar.c?view=diff&rev=167019&r1=167018&r2=167019
==============================================================================
--- team/twilson/calendaring/main/calendar.c (original)
+++ team/twilson/calendaring/main/calendar.c Wed Dec 31 14:53:16 2008
@@ -347,6 +347,8 @@
 	return CMP_MATCH;
 }
 
+/* This is only called from ao2_callbacks that are going to unref the event for us,
+ * so we don't unref the event here.  */
 static struct ast_calendar_event *destroy_event(struct ast_calendar_event *event)
 {
 	if (event->notify_sched > -1 && ast_sched_del(sched, event->notify_sched)) {




More information about the svn-commits mailing list