Commit 95b2df82 authored by Max Kellermann's avatar Max Kellermann

output/osx: fix memory leak after AudioUnitSetProperty() failure

parent 1ebadf86
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment