From a6bd35c9a2d7618b5d9eeb17751e1fd8fddf04bf Mon Sep 17 00:00:00 2001 From: attila Date: Mon, 8 Dec 2003 12:03:03 +0000 Subject: [PATCH] prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch again. Found by Peter Kosinar git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11580 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 0fd9bc92e9..c12d05dc8b 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1376,6 +1376,7 @@ void vo_vm_close(Display *dpy) XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); free(vidmodes); + vidmodes = NULL; } } #endif