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:
Emmanuele Bassi 2010-02-04 13:56:33 +00:00
parent cd3c5155d8
commit ea5e33cf3a

View File

@ -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,