confbridge: Fix some resource leaks on conference teardown.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 7 Dec 2012 00:00:39 +0000 (00:00 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 7 Dec 2012 00:00:39 +0000 (00:00 +0000)
commita821774bad67b9020df06873169f90db36345100
tree22de776a8af985cb072431ce9f1a3fc27fb920f7
parent726e45b2ed9041847402349531dafdbaf8ea2d15
confbridge: Fix some resource leaks on conference teardown.

* Made destroy_conference_bridge() destroy a missed ast_mutex_t and ast_cond_t.

* Made join_conference_bridge() init the ast_mutex_t's and ast_cond_t so
destroy_conference_bridge() can destroy them unconditionally.

* Made join_conference_bridge() abort if the new conference could not be
added to the conferences container.

* Made leave_conference() discard any post-join actions if
join_conference_bridge() had to abort early.

* Made the join_conference_bridge() diagnostic messages better describe
what happened.

* Renamed leave_conference_bridge() to leave_conference() and made it only
take a conference user pointer.  The conference pointer was redundant.

* Made conf_bridge_profile_copy() use struct copy instead of memcpy().

* No need to lock the conference in start_conf_record_thread() since all
of the callers already have it locked.
........

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_confbridge.c
apps/confbridge/conf_config_parser.c