소스 검색

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);
                 }
             }
         }