diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-01 09:01:41 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-01 09:01:41 +0000 |
commit | 46630a96a93494178f58f838337944313605966a (patch) | |
tree | fa70d7b94581bfaa4625dc67bc88d0518ce61003 /Gui/interface.c | |
parent | 0ff088813f7061d60f134874c0c3b8f170ebed4e (diff) | |
download | mpv-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/interface.c')
-rw-r--r-- | Gui/interface.c | 2 |
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 |