[MPlayer-cvslog] r38084 - trunk/gui/win32/dialogs.c
    ib 
    subversion at mplayerhq.hu
       
    Fri Apr 13 13:40:13 EEST 2018
    
    
  
Author: ib
Date: Fri Apr 13 13:40:13 2018
New Revision: 38084
Log:
Remove strdup() in Win32 GUI.
It is unnecessary to duplicate the name.
Modified:
   trunk/gui/win32/dialogs.c
Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c	Fri Apr 13 13:17:47 2018	(r38083)
+++ trunk/gui/win32/dialogs.c	Fri Apr 13 13:40:13 2018	(r38084)
@@ -74,7 +74,7 @@ void mplayerLoadSubtitle(const char *nam
     if (name)
     {
         mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_LoadingSubtitle, name);
-        subdata = sub_read_file(strdup(name), (guiInfo.sh_video ? guiInfo.sh_video->fps : 0));
+        subdata = sub_read_file(name, (guiInfo.sh_video ? guiInfo.sh_video->fps : 0));
         if (!subdata)
         {
             mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_CantLoadSub,name);
    
    
More information about the MPlayer-cvslog
mailing list