[MPlayer-cvslog] CVS: main/Gui interface.c,1.104,1.105

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Jun 1 11:01:43 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/Gui
In directory mail:/var2/tmp/cvs-serv21096/Gui

Modified Files:
	interface.c 
Log Message:
strdup subtitle filename at a more appropriate place, fixing memleaks and
double frees.


Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- interface.c	12 Feb 2005 16:05:10 -0000	1.104
+++ interface.c	1 Jun 2005 09:01:41 -0000	1.105
@@ -486,7 +486,7 @@
  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 




More information about the MPlayer-cvslog mailing list