[vlc-devel] commit: macosx: memleak due to unneeded strdup() (Derk-Jan Hartman )

git version control git at videolan.org
Mon Jun 22 21:40:39 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Mon Jun 22 21:39:07 2009 +0200| [50b04778ef968917797a8757d38b4f0c2f726f4d] | committer: Derk-Jan Hartman 

macosx: memleak due to unneeded strdup()

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

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

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 030387b..379a013 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 );
         }
     }




More information about the vlc-devel mailing list