Merged revisions 173592 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 18:48:55 +0000 (18:48 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 18:48:55 +0000 (18:48 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r173592 | mmichelson | 2009-02-05 12:47:24 -0600 (Thu, 05 Feb 2009) | 3 lines

Add some missing cleanup to app_mixmonitor

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index 7fdc4cb..3056e7e 100644 (file)
@@ -299,6 +299,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);
        ast_free(mixmonitor);