diff options
author | Michel Dänzer <[email protected]> | 2007-07-10 10:49:28 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-07-10 10:49:28 +0200 |
commit | b53659452ccdf33df4bae77d142a86525d5db779 (patch) | |
tree | 632a25d1b5739021174dcaf4405928369e2b2386 /src | |
parent | 46f1d6653ef11a4ce773d7838d037195e7ec1a93 (diff) |
Clear pointers to freed cliprects.
Not doing this could lead to double frees under rare circumstances.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 07ac4c7cd5f..25d32894dc8 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -428,10 +428,12 @@ __driUtilUpdateDrawableInfo(__DRIdrawablePrivate *pdp) if (pdp->pClipRects) { _mesa_free(pdp->pClipRects); + pdp->pClipRects = NULL; } if (pdp->pBackClipRects) { _mesa_free(pdp->pBackClipRects); + pdp->pBackClipRects = NULL; } DRM_SPINUNLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID); |