summaryrefslogtreecommitdiff
path: root/channels/chan_motif.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-10-05 00:12:39 +0000
committerCorey Farrell <git@cfware.com>2014-10-05 00:12:39 +0000
commita03464bea29fbbbf1f0838c107360a6f8ff11cca (patch)
tree470999a1644ded9609d784d836389fcae097aeaf /channels/chan_motif.c
parent3987b978d6f103329e17f2c4b23c3d7588a15f4d (diff)
chan_motif: Correct last commit to use ao2_cleanup to free format cap
This fix applies to 13 and trunk. ASTERISK-24384 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/4043/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_motif.c')
-rw-r--r--channels/chan_motif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index 0dcdf7455..ebc77f8f4 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -2759,7 +2759,7 @@ static int load_module(void)
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);
- ast_format_cap_destroy(jingle_tech.capabilities);
+ ao2_cleanup(jingle_tech.capabilities);
jingle_tech.capabilities = NULL;
return AST_MODULE_LOAD_DECLINE;
}
@@ -2794,7 +2794,7 @@ end:
aco_info_destroy(&cfg_info);
ao2_global_obj_release(globals);
- ast_format_cap_destroy(jingle_tech.capabilities);
+ ao2_cleanup(jingle_tech.capabilities);
jingle_tech.capabilities = NULL;
return AST_MODULE_LOAD_FAILURE;