summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-12-30 04:58:25 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-12-30 05:00:30 +0100
commit5fdc4f732f6fb50dc324b60b0cff05b6eca46946 (patch)
treeeb60d7375ad2761004da27282514c6f92595808d /src
parent53e314cb8057797ae75187d91836a50f61170dd7 (diff)
st/xorg: Be proper with pipe pointers on close in exa
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_exa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
index 37c234af28..4e7882551d 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa.c
@@ -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);