aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-10-05 21:18:43 +0200
committerMax Kellermann <max@duempel.org>2010-10-05 21:18:54 +0200
commit39e42394bdb3a6c1482602cc2bea59cb6a5b9277 (patch)
tree1ee02bd50dc3fa122581a2c0c7d5667d5fb526bf
parenta39e6b43e81907f5fd75d00c384fc2338e9ccfac (diff)
downloadmpd-39e42394bdb3a6c1482602cc2bea59cb6a5b9277.tar.gz
mpd-39e42394bdb3a6c1482602cc2bea59cb6a5b9277.tar.xz
mpd-39e42394bdb3a6c1482602cc2bea59cb6a5b9277.zip
output_all: disable outputs on shutdown
Call output_plugin.disable() before output_plugin.finish(). This ensures that all outputs are properly cleaned up, to make valgrind happy.
Diffstat (limited to '')
-rw-r--r--src/output_all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output_all.c b/src/output_all.c
index 2c43d9f5a..5b066ba26 100644
--- a/src/output_all.c
+++ b/src/output_all.c
@@ -145,6 +145,7 @@ audio_output_all_finish(void)
unsigned int i;
for (i = 0; i < num_audio_outputs; i++) {
+ audio_output_disable(&audio_outputs[i]);
audio_output_finish(&audio_outputs[i]);
}