[vlc-devel] commit: macosx intf: Fix a strdup memleak (Derk-Jan Hartman )

git version control git at videolan.org
Wed May 27 22:02:09 CEST 2009


vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Wed May 27 22:00:56 2009 +0200| [02b581e1dc54e8fe7c3ca6d24528539fd996ac13] | committer: Derk-Jan Hartman 

macosx intf: Fix a strdup memleak

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

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

diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m
index 8b864e6..4578cc2 100644
--- a/modules/gui/macosx/controls.m
+++ b/modules/gui/macosx/controls.m
@@ -705,7 +705,7 @@
     /* Get the descriptive name of the variable */
     var_Change( p_object, psz_variable, VLC_VAR_GETTEXT, &text, NULL );
     [o_mi setTitle: [[VLCMain sharedInstance] localizedString: text.psz_string ?
-                                        text.psz_string : strdup( psz_variable ) ]];
+                                        text.psz_string : psz_variable ]];
 
     var_Get( p_object, psz_variable, &val );
     if( i_type & VLC_VAR_HASCHOICE )




More information about the vlc-devel mailing list