summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2012-05-09 19:34:06 +0100
committerWill Thompson <will@willthompson.co.uk>2012-05-09 19:34:06 +0100
commit1d544459b02e894f84acd1e986fe4395a44caba4 (patch)
treee89ced58d21e5ca2487368595945f53ec833f638
parent212760cd7f395dfe366a86910f5316a2307bbfa5 (diff)
exa: null out priv->data after freeing it…
-rw-r--r--src/videocore-exa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/videocore-exa.c b/src/videocore-exa.c
index c401706..3931cea 100644
--- a/src/videocore-exa.c
+++ b/src/videocore-exa.c
@@ -445,6 +445,7 @@ VideoCoreDestroyPixmap(ScreenPtr pScreen, void *driverPriv)
DestroyGlobalImage(vcExa, pScrn, priv);
free(priv->data);
+ priv->data = NULL;
free(priv);
}
@@ -542,6 +543,7 @@ VideoCoreFinishAccess(PixmapPtr pPixmap, int index)
/* FIXME: shade me up */
(void) (width + height);
free(priv->data);
+ priv->data = NULL;
CheckGLError(pScrn, "FinishAccess:glDrawPixels");
}