summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-01 09:01:41 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-01 09:01:41 +0000
commit46630a96a93494178f58f838337944313605966a (patch)
treefa70d7b94581bfaa4625dc67bc88d0518ce61003 /Gui
parent0ff088813f7061d60f134874c0c3b8f170ebed4e (diff)
downloadmpv-46630a96a93494178f58f838337944313605966a.tar.bz2
mpv-46630a96a93494178f58f838337944313605966a.tar.xz
strdup subtitle filename at a more appropriate place, fixing memleaks and
double frees. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15604 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 7f8bfb10c2..555b02b850 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -486,7 +486,7 @@ void guiLoadSubtitle( char * name )
if ( name )
{
mp_msg( MSGT_GPLAYER,MSGL_INFO,MSGTR_LoadingSubtitles,name );
- subdata=sub_read_file( gstrdup( name ), guiIntfStruct.FPS );
+ subdata=sub_read_file( name, guiIntfStruct.FPS );
if ( !subdata ) mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_CantLoadSub,name );
sub_name = (malloc(2 * sizeof(char*))); //when mplayer will be restarted
sub_name[0] = strdup(name); //sub_name[0] will be read