mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
GLX: fix memory leak
This commit is contained in:
@ -92,7 +92,7 @@ bool cInterfaceGLX::Create(void *window_handle)
|
||||
XFree(fbc);
|
||||
|
||||
// Get an appropriate visual
|
||||
vi = glXGetVisualFromFBConfig(dpy, fbconfig);
|
||||
XVisualInfo* vi = glXGetVisualFromFBConfig(dpy, fbconfig);
|
||||
|
||||
// Create a GLX context.
|
||||
// We try to get a 3.3 core profile, else we try it with anything we get.
|
||||
@ -142,6 +142,8 @@ bool cInterfaceGLX::Create(void *window_handle)
|
||||
s_backbuffer_height = attribs.height;
|
||||
|
||||
win = XWindow.CreateXWindow(parent, vi);
|
||||
XFree(vi);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user