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.
This commit is contained in:
Max Kellermann 2010-10-05 21:18:43 +02:00
parent a39e6b43e8
commit 39e42394bd

View File

@ -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]);
}