vmware/xorg: Handle no init of video in vmw_video_close

This commit is contained in:
Jakob Bornecrantz 2009-12-04 09:40:52 +01:00
parent 47e128331a
commit 12fdef20b0
1 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,8 @@ vmw_video_close(ScrnInfoPtr pScrn, struct vmw_driver *vmw)
debug_printf("%s: enter\n", __func__);
video = vmw->video_priv;
if (!video)
return TRUE;
for (i = 0; i < VMWARE_VID_NUM_PORTS; ++i) {
vmw_video_port_cleanup(pScrn, &video->port[i]);