vlc | branch: master | David Fuhrmann <[email protected]> | Mon May 
13 19:19:29 2013 +0200| [c1cb426cd9924fe39518e373de7a56a58e8e976d] | committer: 
David Fuhrmann

macosx: fix memleak in audio device list update

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1cb426cd9924fe39518e373de7a56a58e8e976d
---

 modules/gui/macosx/MainMenu.m |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index 6f16908..a271470 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -809,6 +809,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
 
     [[o_mu_device itemWithTag:[[NSString stringWithFormat:@"%s", 
currentDevice] intValue]] setState:NSOnState];
 
+    free(currentDevice);
+
     for (NSUInteger x = 0; x < n; x++) {
         free(ids[x]);
         free(names[x]);

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to