diff options
author | Will Thompson <will@willthompson.co.uk> | 2012-05-09 19:34:06 +0100 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2012-05-09 19:34:06 +0100 |
commit | 1d544459b02e894f84acd1e986fe4395a44caba4 (patch) | |
tree | e89ced58d21e5ca2487368595945f53ec833f638 | |
parent | 212760cd7f395dfe366a86910f5316a2307bbfa5 (diff) |
exa: null out priv->data after freeing itβ¦
-rw-r--r-- | src/videocore-exa.c | 2 |
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"); } |