mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glx: Move declaration outside for loop.
This commit is contained in:
parent
57b5ca5d11
commit
cf3bb0cf31
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue