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

git version control git at videolan.org
Sat May 30 00:32:48 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed May 27 22:00:56 2009 +0200| [5f567ca598f755e072e17710dbb501b8caeb48bd] | committer: Jean-Baptiste Kempf 

macosx intf: Fix a strdup memleak
(cherry picked from commit 02b581e1dc54e8fe7c3ca6d24528539fd996ac13)

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

 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 ef16ff5..e743906 100644
--- a/modules/gui/macosx/controls.m
+++ b/modules/gui/macosx/controls.m
@@ -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 )




More information about the vlc-devel mailing list