[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.154,1.155

Moritz Bunkus CVS mosu at mplayerhq.hu
Tue Sep 2 16:39:06 CEST 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv25499

Modified Files:
	x11_common.c 
Log Message:
Fixed double free of data. Patch by Dima K. <dimakar at yahoo.com>

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- x11_common.c	1 Sep 2003 18:24:27 -0000	1.154
+++ x11_common.c	2 Sep 2003 14:39:02 -0000	1.155
@@ -636,7 +636,7 @@
     saver_on(mDisplay);
     if(vo_window!=None) vo_showcursor( mDisplay,vo_window );
     
-    if (f_gc) XFreeGC(mDisplay, f_gc);
+    if (f_gc) { XFreeGC(mDisplay, f_gc); f_gc = NULL; }
 
 #ifdef HAVE_NEW_GUI
     /* destroy window only if it's not controlled by GUI */



More information about the MPlayer-cvslog mailing list