diff libvo/x11_common.c @ 11579:2f96ed23c71b

prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch again. Found by Peter Kosinar <goober@ksp.sk>
author attila
date Mon, 08 Dec 2003 12:03:03 +0000
parents 85e503ddf65f
children faa111ce1315
line wrap: on
line diff
--- 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