]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add some missing cleanup to app_mixmonitor
authorMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 18:47:24 +0000 (18:47 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 18:47:24 +0000 (18:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@173592 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index 85d6c5770b4c12b779a21258fabd1f8c07b508d3..4d5f5be26cfcd5ea757a7da486d799ac19f1287e 100644 (file)
@@ -261,6 +261,8 @@ static void *mixmonitor_thread(void *obj)
                ast_cond_wait(&mixmonitor->mixmonitor_ds->destruction_condition, &mixmonitor->mixmonitor_ds->lock);
        }
        ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock);
+       ast_mutex_destroy(&mixmonitor->mixmonitor_ds->lock);
+       ast_cond_destroy(&mixmonitor->mixmonitor_ds->destruction_condition);
        ast_free(mixmonitor->mixmonitor_ds);
        free(mixmonitor);