From a1f427651d0111463bd44d08d58ae9ecc4a9321e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 1 Nov 2016 10:46:47 -0700 Subject: [PATCH] Patch from Tapani P?lli to fix a memory leak in X11_GL_CreateContext --- src/video/x11/SDL_x11opengl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index abc699dd4..3c73f8ba5 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -648,6 +648,7 @@ X11_GL_CreateContext(_THIS, SDL_Window * window) context = _this->gl_data->glXCreateContextAttribsARB(display, framebuffer_config[0], share_context, True, attribs); + X11_XFree(framebuffer_config); } } }