Clear pointers to freed cliprects.

Not doing this could lead to double frees under rare circumstances.
This commit is contained in:
Michel Dänzer
2007-07-10 10:49:28 +02:00
parent aa328291c5
commit a903749b24

View File

@@ -428,10 +428,12 @@ __driUtilUpdateDrawableInfo(__DRIdrawablePrivate *pdp)
if (pdp->pClipRects) { if (pdp->pClipRects) {
_mesa_free(pdp->pClipRects); _mesa_free(pdp->pClipRects);
pdp->pClipRects = NULL;
} }
if (pdp->pBackClipRects) { if (pdp->pBackClipRects) {
_mesa_free(pdp->pBackClipRects); _mesa_free(pdp->pBackClipRects);
pdp->pBackClipRects = NULL;
} }
DRM_SPINUNLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID); DRM_SPINUNLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID);