]> git.sesse.net Git - vlc/commitdiff
macosx: memleak due to unneeded strdup()
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 22 Jun 2009 19:39:07 +0000 (21:39 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 22 Jun 2009 19:39:07 +0000 (21:39 +0200)
modules/gui/macosx/playlist.m

index 030387b47021337e26a1157fb3fd193b11db8fe7..379a0138720c9058767cd9e94b00c9ac0d38f150 100644 (file)
     {
         for( i = 0; i < (int)[o_options count]; i++ )
         {
-            input_item_AddOption( p_input, strdup( [[o_options objectAtIndex:i] UTF8String] ),
+            input_item_AddOption( p_input, [[o_options objectAtIndex:i] UTF8String],
                                   VLC_INPUT_OPTION_TRUSTED );
         }
     }