[vlc-commits] macosx: fixed memory leak

Felix Paul Kühne git at videolan.org
Mon Apr 16 19:21:13 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 16 19:21:09 2012 +0200| [2eab05e34ae0f580c25fde33c183bd9737c8aa3f] | committer: Felix Paul Kühne

macosx: fixed memory leak

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

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 5d03024..b005ebc 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1876,7 +1876,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
 
     if( version == 1 )
     {
-        NSMutableString * o_workString = [[NSMutableString alloc] initWithFormat:@"%s", config_GetPsz( VLCIntf, "extraintf" )];
+        NSMutableString * o_workString;
         NSRange returnedRange;
         NSRange fullRange;
         BOOL b_needsRestart = NO;



More information about the vlc-commits mailing list