I believe that the following patch should be added in addition to the
changes that Kristian Høgsberg <[EMAIL PROTECTED]> made in commit
3731159ec6e1527655d91b3eb364d5c2d252ac60.

This patch fixes another segfault caused when DRI fails to initialize
properly.

Thanks,
Chris Taylor

PS: Please CC: me as i am not subscribed to the list.



diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index bb3fc89..0ab353e 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -348,7 +348,8 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv)
        Xfree((char*) psc->serverGLXexts);

 #ifdef GLX_DIRECT_RENDERING
-       psc->driScreen->destroyScreen(psc);
+       if (priv->driDisplay)
+               psc->driScreen->destroyScreen(psc);
 #endif
     }
     XFree((char*) priv->screenConfigs);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to