OSDN Git Service
(root)
/
android-x86
/
external-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
c227215
..
22fb61a
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;
}
}