Commit c1cb426c authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix memleak in audio device list update

parent 6627c2bf
...@@ -809,6 +809,8 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -809,6 +809,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
[[o_mu_device itemWithTag:[[NSString stringWithFormat:@"%s", currentDevice] intValue]] setState:NSOnState]; [[o_mu_device itemWithTag:[[NSString stringWithFormat:@"%s", currentDevice] intValue]] setState:NSOnState];
free(currentDevice);
for (NSUInteger x = 0; x < n; x++) { for (NSUInteger x = 0; x < n; x++) {
free(ids[x]); free(ids[x]);
free(names[x]); free(names[x]);
......
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