Merged revisions 173592 via svnmerge from
[asterisk/asterisk.git] / 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);