OutputThread: close the output plugin after filter failure

Fixes memory leak because ao_plugin_close() never gets called.
This commit is contained in:
Max Kellermann 2014-10-23 23:19:40 +02:00
parent 8fc3768166
commit a7b09d3d1c
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -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)

View File

@ -188,6 +188,7 @@ AudioOutput::Open()
name, plugin.name);
mutex.unlock();
ao_plugin_close(this);
CloseFilter();
mutex.lock();