aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-12-26 17:36:59 +0100
committerMax Kellermann <max@duempel.org>2012-01-04 20:47:41 +0100
commit95b2df8261c71be4325a9bc95f8ecf0af3bb3045 (patch)
treed3096666f7977b9b9faa27ce4fc20ffa9cfba81f /src/output
parent1ebadf8620bdc0e58504c9c6284c533989030927 (diff)
downloadmpd-95b2df8261c71be4325a9bc95f8ecf0af3bb3045.tar.gz
mpd-95b2df8261c71be4325a9bc95f8ecf0af3bb3045.tar.xz
mpd-95b2df8261c71be4325a9bc95f8ecf0af3bb3045.zip
output/osx: fix memory leak after AudioUnitSetProperty() failure
Diffstat (limited to 'src/output')
-rw-r--r--src/output/osx_output_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/osx_output_plugin.c b/src/output/osx_output_plugin.c
index 909bee1a6..5ee2f18aa 100644
--- a/src/output/osx_output_plugin.c
+++ b/src/output/osx_output_plugin.c
@@ -291,6 +291,7 @@ osx_output_enable(struct audio_output *ao, GError **error_r)
kAudioUnitScope_Input, 0,
&callback, sizeof(callback));
if (result != noErr) {
+ CloseComponent(oo->au);
g_set_error(error_r, osx_output_quark(), result,
"unable to set callback for OS X audio unit");
return false;