summaryrefslogtreecommitdiff
path: root/channels/chan_motif.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-10-15 19:39:15 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-10-15 19:39:15 +0000
commit28c11fff78d0d653bff96435427e7550f2481c2f (patch)
treee03ac68be9b5bed5a1e2bbe3024e41dbbfceb20a /channels/chan_motif.c
parent3d58066de94ffd2a2c44986be36bf26d49b1ce64 (diff)
chan_motif: Cleanup jingle_tech.capabilities only once.
........ Merged revisions 425627 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_motif.c')
-rw-r--r--channels/chan_motif.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index ebc77f8f4..e5e72283a 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -2756,7 +2756,6 @@ static int load_module(void)
ast_format_cap_append_by_type(jingle_tech.capabilities, AST_MEDIA_TYPE_AUDIO);
if (aco_process_config(&cfg_info, 0)) {
- ao2_ref(jingle_tech.capabilities, -1);
ast_log(LOG_ERROR, "Unable to read config file motif.conf. Module loaded but not running.\n");
aco_info_destroy(&cfg_info);
ao2_cleanup(jingle_tech.capabilities);
@@ -2784,7 +2783,6 @@ static int load_module(void)
return 0;
end:
- ao2_cleanup(jingle_tech.capabilities);
ast_rtp_glue_unregister(&jingle_rtp_glue);
if (sched) {