drisw: fix use after free (bug 27370)
authorGeorge Sapountzis <gsapountzis@gmail.com>
Tue, 30 Mar 2010 10:09:16 +0000 (13:09 +0300)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Tue, 30 Mar 2010 10:10:36 +0000 (13:10 +0300)
src/mesa/drivers/dri/common/drisw_util.c

index 3f4e94c8f6eecaaedb5cfeba9c40a604568d974e..8d08b93bfb571b584efd97afb7515f7de02c1116 100644 (file)
@@ -184,8 +184,6 @@ static int driUnbindContext(__DRIcontext *pcp)
     pcp->driDrawablePriv = NULL;
     pcp->driReadablePriv = NULL;
 
-    pdp->driContextPriv = NULL;
-
     return GL_TRUE;
 }