glx: Do not leak a XVisualInfo
The XVisualInfo we retrieve for the dummy window should be freed after we used it.
This commit is contained in:
parent
cd3c5155d8
commit
ea5e33cf3a
@ -549,6 +549,8 @@ clutter_backend_glx_create_context (ClutterBackend *backend,
|
||||
backend_glx->dummy_xwin,
|
||||
backend_glx->gl_context);
|
||||
|
||||
XFree (xvisinfo);
|
||||
|
||||
if (clutter_x11_untrap_x_errors ())
|
||||
{
|
||||
g_set_error (error, CLUTTER_INIT_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user