From cd601513f5ff4f488a6f6527bb033e39ee62ffda Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Thu, 29 Jul 2010 16:01:39 -0400 Subject: glx: Fix linked list deletion in __glXCloseDisplay() I hate single linked lists. --- src/glx/glxext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index c227215d322..22fb61ac219 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -246,7 +246,7 @@ __glXCloseDisplay(Display * dpy, XExtCodes * codes) prev = &glx_displays; for (priv = glx_displays; priv; prev = &priv->next, priv = priv->next) { if (priv->dpy == dpy) { - (*prev)->next = priv->next; + (*prev) = priv->next; break; } } -- cgit v1.2.3