Decrease use count in wav_gsm (bug #2350)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3706 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
a56dcba8e2
commit
d7698e0111
|
@ -390,6 +390,11 @@ static struct ast_filestream *wav_rewrite(int fd, char *comment)
|
|||
static void wav_close(struct ast_filestream *s)
|
||||
{
|
||||
char zero = 0;
|
||||
if (ast_mutex_lock(&wav_lock)) {
|
||||
ast_log(LOG_WARNING, "Unable to lock wav list\n");
|
||||
return;
|
||||
}
|
||||
glistcnt--;
|
||||
ast_mutex_unlock(&wav_lock);
|
||||
ast_update_use_count();
|
||||
/* Pad to even length */
|
||||
|
|
Reference in New Issue