[vlc-commits] macosx: fix memleak in audio device list update

David Fuhrmann git at videolan.org
Mon May 13 20:18:01 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | 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]);



More information about the vlc-commits mailing list