Clear pointers to freed cliprects.
Not doing this could lead to double frees under rare circumstances.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user