Commit eb613c15 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix hypothetical aout leak

parent 44d273e0
......@@ -730,8 +730,10 @@ static VLCMainMenu *_o_sharedInstance = nil;
return;
int n = aout_DevicesList(p_aout, &ids, &names);
if (n == -1)
if (n == -1) {
vlc_object_release(p_aout);
return;
}
currentDevice = aout_DeviceGet(p_aout);
NSMenuItem * o_mi_tmp;
......
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