Add another missing check for uninitialized DRI.
authorKristian Høgsberg <krh@redhat.com>
Wed, 12 Mar 2008 06:01:40 +0000 (02:01 -0400)
committerKristian Høgsberg <krh@redhat.com>
Wed, 12 Mar 2008 06:04:16 +0000 (02:04 -0400)
Spotted by Chris Taylor.

src/glx/x11/glxext.c

index bb3fc8940336a5c377e8939bdc9b163f111d684e..077398fe33f55a5d19181cde8a1e70814c393c1e 100644 (file)
@@ -348,7 +348,8 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv)
        Xfree((char*) psc->serverGLXexts);
 
 #ifdef GLX_DIRECT_RENDERING
-       psc->driScreen->destroyScreen(psc);
+       if (psc->driScreen)
+           psc->driScreen->destroyScreen(psc);
 #endif
     }
     XFree((char*) priv->screenConfigs);