From 50b04778ef968917797a8757d38b4f0c2f726f4d Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 22 Jun 2009 21:39:07 +0200 Subject: [PATCH] macosx: memleak due to unneeded strdup() --- modules/gui/macosx/playlist.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 030387b470..379a013872 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -1191,7 +1191,7 @@ { 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 ); } } -- 2.39.5