From ea5e33cf3a38edddef88ec30131c35bb8ab4bfaf Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 4 Feb 2010 13:56:33 +0000 Subject: [PATCH] glx: Do not leak a XVisualInfo The XVisualInfo we retrieve for the dummy window should be freed after we used it. --- clutter/glx/clutter-backend-glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/glx/clutter-backend-glx.c b/clutter/glx/clutter-backend-glx.c index afa32d13b..f32dc41ef 100644 --- a/clutter/glx/clutter-backend-glx.c +++ b/clutter/glx/clutter-backend-glx.c @@ -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,