From 4b0a3cbab131eb453e2b3fc0337121969258a7be Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 4 Nov 2017 23:06:31 +0100 Subject: glx: free fbconfigs on destroy Reviewed-by: Eric Engestrom Signed-off-by: Giuseppe Bilotta --- glx/glxscreens.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'glx') 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); + } } -- cgit v1.2.3