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:
parent
bc0dc00da7
commit
a6bd35c9a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user