Commit 5f567ca5 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman Committed by Jean-Baptiste Kempf

macosx intf: Fix a strdup memleak

(cherry picked from commit 02b581e1dc54e8fe7c3ca6d24528539fd996ac13)
parent 2341f8bb
......@@ -699,7 +699,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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment