diff options
author | Rob Clark <robdclark@gmail.com> | 2014-09-05 17:43:48 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-10-03 10:39:07 -0400 |
commit | 258f25eda27933923c1f67ca335186c691482646 (patch) | |
tree | 4a1a3f960dca959e53d7e67f170e481761e42d61 | |
parent | 309e839fe228d29102f41d3444d0395c2e11bb5b (diff) |
dri2: pDraw can be gone already... don't dixSetPrivate()
Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r-- | src/msm-dri2.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/msm-dri2.c b/src/msm-dri2.c index d9f6d0e..a55d1dc 100644 --- a/src/msm-dri2.c +++ b/src/msm-dri2.c @@ -93,18 +93,9 @@ static int MSMDRI2DrawableGone(pointer p, XID id) { MSMDRI2DrawablePtr pPriv = p; - DrawablePtr pDraw = pPriv->pDraw; if (pPriv->pThirdBuffer) - MSMDRI2DestroyBuffer(pDraw, pPriv->pThirdBuffer); - - if (pDraw->type == DRAWABLE_WINDOW) { - dixSetPrivate(&((WindowPtr)pDraw)->devPrivates, - MSMDRI2WindowPrivateKey, NULL); - } else { - dixSetPrivate(&((PixmapPtr)pDraw)->devPrivates, - MSMDRI2PixmapPrivateKey, NULL); - } + MSMDRI2DestroyBuffer(NULL, pPriv->pThirdBuffer); free(pPriv); |