summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2017-11-04 23:06:31 +0100
committerAdam Jackson <ajax@redhat.com>2017-11-06 16:54:29 -0500
commit4b0a3cbab131eb453e2b3fc0337121969258a7be (patch)
tree4066c8edddb84d10e4e36df31c0b70b4347ef6c5 /glx
parentbb766ef11227bd8c71ac65845d1930edd0eda40d (diff)
glx: free fbconfigs on destroy
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Diffstat (limited to 'glx')
-rw-r--r--glx/glxscreens.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/glx/glxscreens.c b/glx/glxscreens.c
index 99bf6dd27..73444152a 100644
--- a/glx/glxscreens.c
+++ b/glx/glxscreens.c
@@ -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);
+ }
}