mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Decrease use count in wav_gsm (bug #2350)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -390,6 +390,11 @@ static struct ast_filestream *wav_rewrite(int fd, char *comment)
|
|||||||
static void wav_close(struct ast_filestream *s)
|
static void wav_close(struct ast_filestream *s)
|
||||||
{
|
{
|
||||||
char zero = 0;
|
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_mutex_unlock(&wav_lock);
|
||||||
ast_update_use_count();
|
ast_update_use_count();
|
||||||
/* Pad to even length */
|
/* Pad to even length */
|
||||||
|
Reference in New Issue
Block a user