diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2017-11-04 23:06:31 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-11-06 16:54:29 -0500 |
commit | 4b0a3cbab131eb453e2b3fc0337121969258a7be (patch) | |
tree | 4066c8edddb84d10e4e36df31c0b70b4347ef6c5 /glx | |
parent | bb766ef11227bd8c71ac65845d1930edd0eda40d (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.c | 7 |
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); + } } |