aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-27 15:54:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-27 15:54:22 +0000
commita2feca1af2820b283b4d4a18f3727c2ea2a9fb9e (patch)
treed9c1f61db265efcd55620957af66276865a91d4c /res/res_agi.c
parentac0f0aba663c4e90386e70da0e39b6d50b5e946c (diff)
Merged revisions 184673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r184673 | file | 2009-03-27 12:46:46 -0300 (Fri, 27 Mar 2009) | 7 lines Fix speech structure leak in the AGI speech recognition integration. The AGI dialplan applications did not destroy the speech structure automatically if it was not destroyed by the running AGI script. They will now do this. (issue LUMENVOX-15) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@184675 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index b5d1fe8a9..977dbd6d7 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -493,6 +493,10 @@ static enum agi_result launch_asyncagi(struct ast_channel *chan, char *argv[], i
ast_frfree(f);
}
}
+
+ if (async_agi.speech) {
+ ast_speech_destroy(async_agi.speech);
+ }
quit:
/* notify manager users this channel cannot be
controlled anymore by Async AGI */
@@ -2752,6 +2756,9 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi
}
}
}
+ if (agi->speech) {
+ ast_speech_destroy(agi->speech);
+ }
/* Notify process */
if (send_sighup) {
if (pid > -1) {