diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-18 01:03:27 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-18 01:03:27 +0000 |
commit | 0edd5e59c8fb1efce707d33fd85fb83aedac7c75 (patch) | |
tree | 5c8972c4baae93235463e91024449256445d3e48 /app.c | |
parent | 6b422b9a2852623e273db83f4edea166d8ba6fd0 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@10430 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -847,6 +847,7 @@ int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordf res = ast_set_read_format(chan, AST_FORMAT_SLINEAR); if (res < 0) { ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n"); + ast_dsp_free(sildet); return -1; } } @@ -951,6 +952,7 @@ int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordf } else { ast_log(LOG_WARNING, "Error creating writestream '%s', format '%s'\n", prependfile, sfmt[x]); } + ast_dsp_free(sildet); *duration = end - start; #if 0 if (outmsg > 1) { |