[Mplayer-cvslog] CVS: main/Gui interface.h,1.3,1.4

Zoltan Ponekker pontscho at mplayer.dev.hu
Sun Feb 24 22:57:18 CET 2002


Update of /cvsroot/mplayer/main/Gui
In directory mplayer:/var/tmp.root/cvs-serv10560/Gui

Modified Files:
	interface.h 
Log Message:
mem corruption bug fix.

Index: interface.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- interface.h	24 Feb 2002 19:34:51 -0000	1.3
+++ interface.h	24 Feb 2002 21:57:15 -0000	1.4
@@ -95,6 +95,7 @@
 
 #define guiXEvent 0
 #define guiCEvent 1
+#define guiIEvent 2
 
 extern void guiInit( int argc,char* argv[], char *envp[] );
 extern void guiGetEvent( int type,char * arg );
@@ -102,7 +103,7 @@
 
 #define gstrdup( s,ss ) { s=malloc( strlen( ss ) + 3 ); strcpy( s,ss ); }
 
-#define guiSetFilename( s,n ) { s=strdup( n ); }
+#define guiSetFilename( s,n ) { if ( s ) free( s ); s=strdup( n ); }
 
 #define guiSetDF( s,d,n )                       \
  {                                              \




More information about the MPlayer-cvslog mailing list