aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-23 23:19:40 +0200
committerMax Kellermann <max@duempel.org>2014-10-24 00:35:16 +0200
commita7b09d3d1ce3ada362c765217633f4da9c36ce63 (patch)
treeab3ada8265eda982c4b2297849db2238c77adaa8 /src
parent8fc3768166264b7c858df6d910fa910ca3549a96 (diff)
downloadmpd-a7b09d3d1ce3ada362c765217633f4da9c36ce63.tar.gz
mpd-a7b09d3d1ce3ada362c765217633f4da9c36ce63.tar.xz
mpd-a7b09d3d1ce3ada362c765217633f4da9c36ce63.zip
OutputThread: close the output plugin after filter failure
Fixes memory leak because ao_plugin_close() never gets called.
Diffstat (limited to 'src')
-rw-r--r--src/output/OutputThread.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx
index d26b2da67..54664bb65 100644
--- a/src/output/OutputThread.cxx
+++ b/src/output/OutputThread.cxx
@@ -188,6 +188,7 @@ AudioOutput::Open()
name, plugin.name);
mutex.unlock();
+ ao_plugin_close(this);
CloseFilter();
mutex.lock();