projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b5ca5
)
glx: Move declaration outside for loop.
author
Vinson Lee
<vlee@vmware.com>
Wed, 23 Dec 2009 20:42:38 +0000
(12:42 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 23 Dec 2009 20:42:38 +0000
(12:42 -0800)
src/glx/x11/glxext.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/glxext.c
b/src/glx/x11/glxext.c
index e5553cbf76ca32b2ce3c9a4117f1a9fbcd8a1c25..5633a3e4a29a22af80562f49589b96f1ac5e7107 100644
(file)
--- a/
src/glx/x11/glxext.c
+++ b/
src/glx/x11/glxext.c
@@
-150,8
+150,9
@@
FreeScreenConfigs(__GLXdisplayPrivate * priv)
#ifdef GLX_DIRECT_RENDERING
if (psc->driver_configs) {
- for (unsigned int i = 0; psc->driver_configs[i]; i++)
- free((__DRIconfig *) psc->driver_configs[i]);
+ unsigned int j;
+ for (j = 0; psc->driver_configs[j]; j++)
+ free((__DRIconfig *) psc->driver_configs[j]);
free(psc->driver_configs);
psc->driver_configs = NULL;
}