diff options
| author | degasus <wickmarkus@web.de> | 2015-03-08 17:42:37 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-03-08 17:42:37 +0100 |
| commit | f3f2ed15363428b54853916fd91716da29f0fcbe (patch) | |
| tree | d4f5c9708617205408d735874c49d5f59a7c8fda /Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp | |
| parent | b0f61201c36b1e14efe860069ce2fdb1ac87b74f (diff) | |
GLX: fix memory leak
Diffstat (limited to 'Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp b/Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp index e9549998f8..8fb6da5639 100644 --- a/Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp +++ b/Source/Core/VideoBackends/OGL/GLInterface/GLX.cpp @@ -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; } |
