From: Jakob Bornecrantz Date: Fri, 4 Dec 2009 08:40:52 +0000 (+0100) Subject: vmware/xorg: Handle no init of video in vmw_video_close X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12fdef20b02595c10cec91aad75abe6ca59f5513;p=mesa.git vmware/xorg: Handle no init of video in vmw_video_close --- diff --git a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c index 6e34aa21f38..d62c3b7296f 100644 --- a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c +++ b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c @@ -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]);