diff options
author | Vinson Lee <[email protected]> | 2010-02-27 16:51:17 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 16:51:17 -0800 |
commit | cab77711b3e8d398393677bcefcd413f50503a64 (patch) | |
tree | b990c090858062b1c111f4abc8b977de16095f92 /src/mesa/drivers/dri/common | |
parent | 975f105bb88fe6c146c091556f142e733885c91a (diff) |
dri: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index a4fd002664b..890ae513397 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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; |