[asterisk-commits] kmoore: trunk r412440 - in /trunk: ./ include/asterisk/stasis_app.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 16 14:14:44 CDT 2014


Author: kmoore
Date: Wed Apr 16 14:14:37 2014
New Revision: 412440

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412440
Log:
Stasis: Add a usage note on stasis_app_get_bridge

This function returns an ast_bridge without a refcount bump and the
caller must increment the count if it intends to hold the pointer.

(closes issue ASTERISK-23588)
Review: https://reviewboard.asterisk.org/r/3450/
Reported by: Matt Jordan
........

Merged revisions 412439 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/include/asterisk/stasis_app.h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/include/asterisk/stasis_app.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/stasis_app.h?view=diff&rev=412440&r1=412439&r2=412440
==============================================================================
--- trunk/include/asterisk/stasis_app.h (original)
+++ trunk/include/asterisk/stasis_app.h Wed Apr 16 14:14:37 2014
@@ -675,6 +675,10 @@
  * \since 12
  * \brief Gets the bridge currently associated with a control object.
  *
+ * \note If the bridge returned by this function is to be held for any
+ *       length of time, its refcount should be incremented until the
+ *       caller is finished with it.
+ *
  * \param control Control object for the channel to query.
  *
  * \return Associated \ref ast_bridge.




More information about the asterisk-commits mailing list