Fix a variety of ref counting issues
authorMatthew Jordan <mjordan@digium.com>
Tue, 2 Oct 2012 01:47:16 +0000 (01:47 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 2 Oct 2012 01:47:16 +0000 (01:47 +0000)
commita094707d5156a005fb6e9277bd4a14f9d7e7ab1c
tree26a15c7ef864995e2f2d89d09294024bad0145cb
parent4e228fce0382550136e5c34cb4d9fd400b8d4ad3
Fix a variety of ref counting issues

This patch resolves a number of ref leaks that occur primarily on Asterisk
shutdown.  It adds a variety of shutdown routines to core portions of
Asterisk such that they can reclaim resources allocate duringd initialization.

Review: https://reviewboard.asterisk.org/r/2137
........

Merged revisions 374177 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 374178 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 374196 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
24 files changed:
channels/chan_agent.c
include/asterisk/astobj2.h
main/asterisk.c
main/astobj2.c
main/ccss.c
main/cel.c
main/channel.c
main/config_options.c
main/data.c
main/db.c
main/event.c
main/features.c
main/format.c
main/format_pref.c
main/indications.c
main/manager.c
main/message.c
main/named_acl.c
main/pbx.c
main/taskprocessor.c
main/udptl.c
main/xmldoc.c
res/res_musiconhold.c
res/res_xmpp.c