projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ea539
)
glx: Fix linked list deletion in __glXCloseDisplay()
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 29 Jul 2010 20:01:39 +0000
(16:01 -0400)
committer
Kristian 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
patch
|
blob
|
history
diff --git
a/src/glx/glxext.c
b/src/glx/glxext.c
index c227215d3223344287b2c0ee73c3fcb4dfc8a517..22fb61ac2193334a8c24a6303c0acaf650708954 100644
(file)
--- 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;
}
}