]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis: Reduce RAII_VAR usage.
authorCorey Farrell <git@cfware.com>
Sat, 6 Jan 2018 08:17:15 +0000 (03:17 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 8 Jan 2018 23:51:28 +0000 (17:51 -0600)
commit17480f6ea460cc1e8de532c0ce0a989247858606
treed24a8846eca3ee41280e642b9e131ade938ff621
parent7cc614d22363398747bd2c1aa81d3422cf2d07c5
res_stasis: Reduce RAII_VAR usage.

In addition to being a micro-optimization (RAII_VAR has overhead), this
change improves output of REF_DEBUG.  Unfortunately when RAII_VAR calls
ao2_cleanup it does so from a generated _dtor_varname function.  For
example this caused _dtor_app to release a reference instead of
__stasis_app_unregister.

Change-Id: I4ce67120583a446babf9adeec678b71d37fcd9e5
res/res_stasis.c
res/stasis/app.c
res/stasis/command.c
res/stasis/control.c
res/stasis/stasis_bridge.c