dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-09-02 03:33:09 +00:00
parent a56dcba8e2
commit d7698e0111
1 changed files with 5 additions and 0 deletions

View File

@ -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 */