]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixed a use count bug
authorAnthony Minessale II <anthmct@yahoo.com>
Wed, 25 Aug 2004 18:30:51 +0000 (18:30 +0000)
committerAnthony Minessale II <anthmct@yahoo.com>
Wed, 25 Aug 2004 18:30:51 +0000 (18:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3657 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_pcm.c

index 3c1cbe3cb47eef9db9d9e9cd4b5d808cce4a7e84..a3ad6514348af394ae72834593937345302b3001 100755 (executable)
@@ -108,6 +108,7 @@ static void pcm_close(struct ast_filestream *s)
                ast_log(LOG_WARNING, "Unable to lock pcm list\n");
                return;
        }
+       glistcnt--;
        ast_mutex_unlock(&pcm_lock);
        ast_update_use_count();
        close(s->fd);