diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-07-10 10:49:28 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-07-10 11:05:41 +0200 |
commit | a903749b246fce26038c66d06fe7eb77daf815ab (patch) | |
tree | 5158eb32e76f4e6927806a32a1402835120a954b /src/mesa/drivers/dri/common | |
parent | aa328291c5b015e74ebfd9c5cdb39227265b3000 (diff) |
Clear pointers to freed cliprects.
Not doing this could lead to double frees under rare circumstances.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-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 dd52f7e915..c30e66f172 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); |