Explorar o código

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

Sam Lantinga %!s(int64=8) %!d(string=hai) anos
pai
achega
a1f427651d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
                 }
             }
         }