[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.160,1.161

Attila Kinali CVS attila at mplayerhq.hu
Mon Dec 8 13:03:35 CET 2003


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

Modified Files:
	x11_common.c 
Log Message:
prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch
again.
Found by Peter Kosinar <goober at ksp.sk>


Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- x11_common.c	30 Nov 2003 16:36:10 -0000	1.160
+++ x11_common.c	8 Dec 2003 12:03:03 -0000	1.161
@@ -1376,6 +1376,7 @@
            XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]);
            XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]);
            free(vidmodes);
+           vidmodes = NULL;
          }
 }
 #endif



More information about the MPlayer-cvslog mailing list