# HG changeset patch # User attila # Date 1070884983 0 # Node ID 2f96ed23c71b1bc1be476d90c302db20594410ce # Parent b48d7fca8c73224a59d6bc0e6e559522ea57ce96 prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch again. Found by Peter Kosinar diff -r b48d7fca8c73 -r 2f96ed23c71b libvo/x11_common.c --- a/libvo/x11_common.c Mon Dec 08 11:21:59 2003 +0000 +++ b/libvo/x11_common.c Mon Dec 08 12:03:03 2003 +0000 @@ -1376,6 +1376,7 @@ XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); free(vidmodes); + vidmodes = NULL; } } #endif