From e349d4c20397075850aae318c565dc3d93d2128e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 1 Nov 2016 10:46:47 -0700 Subject: [PATCH] =?UTF-8?q?Patch=20from=20Tapani=20P=C3=A4lli=20to=20fix?= =?UTF-8?q?=20a=20memory=20leak=20in=20X11=5FGL=5FCreateContext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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); } } }