output/osx: fix memory leak after AudioUnitSetProperty() failure
This commit is contained in:
parent
1ebadf8620
commit
95b2df8261
@ -291,6 +291,7 @@ osx_output_enable(struct audio_output *ao, GError **error_r)
|
|||||||
kAudioUnitScope_Input, 0,
|
kAudioUnitScope_Input, 0,
|
||||||
&callback, sizeof(callback));
|
&callback, sizeof(callback));
|
||||||
if (result != noErr) {
|
if (result != noErr) {
|
||||||
|
CloseComponent(oo->au);
|
||||||
g_set_error(error_r, osx_output_quark(), result,
|
g_set_error(error_r, osx_output_quark(), result,
|
||||||
"unable to set callback for OS X audio unit");
|
"unable to set callback for OS X audio unit");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user