glx: Fix linked list deletion in __glXCloseDisplay()
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 29 Jul 2010 20:01:39 +0000 (16:01 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 29 Jul 2010 20:03:44 +0000 (16:03 -0400)
I hate single linked lists.

src/glx/glxext.c

index c227215d3223344287b2c0ee73c3fcb4dfc8a517..22fb61ac2193334a8c24a6303c0acaf650708954 100644 (file)
@@ -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;
       }
    }