[asterisk-commits] mmichelson: branch mmichelson/pool_shark r380429 - /team/mmichelson/pool_shar...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 29 16:04:40 CST 2013


Author: mmichelson
Date: Tue Jan 29 16:04:37 2013
New Revision: 380429

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380429
Log:
Be sure when indicating to have a valid reference to the SIP session.


Modified:
    team/mmichelson/pool_shark/channels/chan_gulp.c

Modified: team/mmichelson/pool_shark/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pool_shark/channels/chan_gulp.c?view=diff&rev=380429&r1=380428&r2=380429
==============================================================================
--- team/mmichelson/pool_shark/channels/chan_gulp.c (original)
+++ team/mmichelson/pool_shark/channels/chan_gulp.c Tue Jan 29 16:04:37 2013
@@ -306,6 +306,7 @@
 {
 	struct indicate_data *ind_data = obj;
 	ast_free(ind_data->frame_data);
+	ao2_ref(ind_data->session, -1);
 }
 
 static struct indicate_data *indicate_data_alloc(struct ast_sip_session *session,
@@ -324,6 +325,8 @@
 	ind_data->datalen = datalen;
 	ind_data->condition = condition;
 	ind_data->response_code = response_code;
+	ao2_ref(session, +1);
+	ind_data->session = session;
 	return ind_data;
 }
 




More information about the asterisk-commits mailing list