diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-02 21:41:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 21:41:42 +0200 |
commit | e0d610203c5194400a5932f36ae0d96c8ede7f0f (patch) | |
tree | 68c2fb70ffafe632d82a4292ca8c0fade49da448 /platform | |
parent | 9e1e4defefdd2e08eb1a8672c27bef25c58de88b (diff) | |
parent | f7dad789e958fed81bb167b14c5add45ef723cf9 (diff) |
Merge pull request #30254 from bojidar-bg/30224-docdata-generate
Fix various memory leaks and errors
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/context_gl_x11.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/x11/context_gl_x11.cpp b/platform/x11/context_gl_x11.cpp index 9718b03164..d70b947fcc 100644 --- a/platform/x11/context_gl_x11.cpp +++ b/platform/x11/context_gl_x11.cpp @@ -145,6 +145,7 @@ Error ContextGL_X11::initialize() { break; } } + XFree(fbc); ERR_FAIL_COND_V(!fbconfig, ERR_UNCONFIGURED); swa.background_pixmap = None; @@ -159,6 +160,7 @@ Error ContextGL_X11::initialize() { vi = glXGetVisualFromFBConfig(x11_display, fbc[0]); fbconfig = fbc[0]; + XFree(fbc); } int (*oldHandler)(Display *, XErrorEvent *) = XSetErrorHandler(&ctxErrorHandler); |