mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 17:00:09 +01:00
dri: Fix potential null pointer deference in dri_put_drawable.
(cherry picked from commit 364070b1f2)
This commit is contained in:
parent
76b3523d75
commit
f622b649fb
1 changed files with 4 additions and 4 deletions
|
|
@ -498,11 +498,11 @@ static void dri_put_drawable(__DRIdrawable *pdp)
|
|||
{
|
||||
__DRIscreenPrivate *psp;
|
||||
|
||||
pdp->refcount--;
|
||||
if (pdp->refcount)
|
||||
return;
|
||||
|
||||
if (pdp) {
|
||||
pdp->refcount--;
|
||||
if (pdp->refcount)
|
||||
return;
|
||||
|
||||
psp = pdp->driScreenPriv;
|
||||
(*psp->DriverAPI.DestroyBuffer)(pdp);
|
||||
if (pdp->pClipRects) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue