From: Jakob Bornecrantz Date: Wed, 30 Dec 2009 03:58:25 +0000 (+0100) Subject: st/xorg: Be proper with pipe pointers on close in exa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fdc4f732f6fb50dc324b60b0cff05b6eca46946;p=mesa.git st/xorg: Be proper with pipe pointers on close in exa --- diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index 37c234af28f..4e7882551dd 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);