Remove strdup() in Win32 GUI.
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 13 Apr 2018 10:40:13 +0000 (10:40 +0000)
committerib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 13 Apr 2018 10:40:13 +0000 (10:40 +0000)
It is unnecessary to duplicate the name.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38084 b3059339-0415-0410-9bf9-f77b7e298cf2

gui/win32/dialogs.c

index 387e418..cd58332 100644 (file)
@@ -74,7 +74,7 @@ void mplayerLoadSubtitle(const char *name)
     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);