浏览代码

Patch from Tapani P?lli to fix a memory leak in X11_GL_CreateContext

Sam Lantinga 8 年之前
父节点
当前提交
a1f427651d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/video/x11/SDL_x11opengl.c

+ 1 - 0
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);
                 }
             }
         }