diff options
author | Max Kellermann <max@duempel.org> | 2014-10-23 23:19:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-24 00:35:16 +0200 |
commit | a7b09d3d1ce3ada362c765217633f4da9c36ce63 (patch) | |
tree | ab3ada8265eda982c4b2297849db2238c77adaa8 | |
parent | 8fc3768166264b7c858df6d910fa910ca3549a96 (diff) | |
download | mpd-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.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/output/OutputThread.cxx | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,4 +1,6 @@ ver 0.19.2 (not yet released) +* output + - fix memory leak after filter initialization error * fix assertion failure on unsupported PCM conversion ver 0.19.1 (2014/10/19) 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(); |