summaryrefslogtreecommitdiff
path: root/funcs/func_talkdetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_talkdetect.c')
-rw-r--r--funcs/func_talkdetect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_talkdetect.c b/funcs/func_talkdetect.c
index f127fa3d7..ccc74fd7f 100644
--- a/funcs/func_talkdetect.c
+++ b/funcs/func_talkdetect.c
@@ -218,6 +218,7 @@ static int talk_detect_audiohook_cb(struct ast_audiohook *audiohook, struct ast_
blob);
if (message) {
stasis_publish(ast_channel_topic(chan), message);
+ ao2_ref(message, -1);
}
ast_json_unref(blob);