dri: Add assert to check for null pointer dereference.
This commit is contained in:
parent
975f105bb8
commit
cab77711b3
|
@ -127,6 +127,7 @@ static int driUnbindContext(__DRIcontext *pcp)
|
|||
/* Let driver unbind drawable from context */
|
||||
(*psp->DriverAPI.UnbindContext)(pcp);
|
||||
|
||||
assert(pdp);
|
||||
if (pdp->refcount == 0) {
|
||||
/* ERROR!!! */
|
||||
return GL_FALSE;
|
||||
|
|
Loading…
Reference in New Issue