glx: Fix use after free case when destroying screens
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Jul 2010 01:51:58 +0000 (21:51 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Jul 2010 02:05:53 +0000 (22:05 -0400)
src/glx/glxext.c

index f9a5f7ce5d730f6f14f477ec2f5ada8a3ed08d68..eadc792b917d790e6ed8e8a778ca0ce7b8c482ed 100644 (file)
@@ -229,7 +229,6 @@ FreeScreenConfigs(__GLXdisplayPrivate * priv)
 #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
       if (psc->driScreen) {
          psc->driScreen->destroyScreen(psc);
-         psc->driScreen = NULL;
       } else {
         Xfree(psc);
       }