1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00

prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch

again.
Found by Peter Kosinar <goober@ksp.sk>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11580 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2003-12-08 12:03:03 +00:00
parent bc0dc00da7
commit a6bd35c9a2

View File

@ -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