aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/osx_output_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/osx_output_plugin.c')
-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;