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

git version control git at videolan.org
Mon Jun 22 23:04:24 CEST 2009


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

macosx: memleak due to unneeded strdup()
(cherry picked from commit 50b04778ef968917797a8757d38b4f0c2f726f4d)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

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

 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 db4e8b5..fc36a21 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1098,7 +1098,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