changeset 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 b48d7fca8c73
children 90953d955165
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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