st/xorg: Be proper with pipe pointers on close in exa
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 30 Dec 2009 03:58:25 +0000 (04:58 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 30 Dec 2009 04:00:30 +0000 (05:00 +0100)
src/gallium/state_trackers/xorg/xorg_exa.c

index 37c234af28fd43713e908cabc18d7060829054e2..4e7882551ddfafc3abb06d218e19a7646418fafc 100644 (file)
@@ -1021,6 +1021,9 @@ xorg_exa_close(ScrnInfoPtr pScrn)
 
    if (exa->pipe)
       exa->pipe->destroy(exa->pipe);
+   exa->pipe = NULL;
+   /* Since this was shared be proper with the pointer */
+   ms->ctx = NULL;
 
    exaDriverFini(pScrn->pScreen);
    xfree(exa);