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