Commit 4b0a3cba authored by Giuseppe Bilotta's avatar Giuseppe Bilotta Committed by Adam Jackson
Browse files

glx: free fbconfigs on destroy


Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Giuseppe Bilotta's avatarGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
parent bb766ef1
......@@ -423,8 +423,15 @@ __glXScreenInit(__GLXscreen * pGlxScreen, ScreenPtr pScreen)
void
__glXScreenDestroy(__GLXscreen * screen)
{
__GLXconfig *config, *next;
free(screen->glvnd);
free(screen->GLXextensions);
free(screen->GLextensions);
free(screen->visuals);
for (config = screen->fbconfigs; config != NULL; config = next) {
next = config->next;
free(config);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment