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 3c1cbe3..a3ad651 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);