comparison 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
comparison
equal deleted inserted replaced
11578:b48d7fca8c73 11579:2f96ed23c71b
1374 } 1374 }
1375 1375
1376 XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); 1376 XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]);
1377 XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); 1377 XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]);
1378 free(vidmodes); 1378 free(vidmodes);
1379 vidmodes = NULL;
1379 } 1380 }
1380 } 1381 }
1381 #endif 1382 #endif
1382 1383
1383 #endif /* X11_FULLSCREEN */ 1384 #endif /* X11_FULLSCREEN */