]> git.sesse.net Git - vlc/commitdiff
macosx intf: Fix a strdup memleak
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 27 May 2009 20:00:56 +0000 (22:00 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 29 May 2009 22:32:42 +0000 (00:32 +0200)
(cherry picked from commit 02b581e1dc54e8fe7c3ca6d24528539fd996ac13)

modules/gui/macosx/controls.m

index ef16ff5d6a7b0ad9bd98d528752ebe56286892ee..e743906f63f2dea7970bdcb1ba56cb54e7defe1e 100644 (file)
     /* 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 )