From 3e13fc4f886c2181ad83b7aa735d84be318a1c48 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 7 Feb 2024 12:26:04 +1100 Subject: [PATCH] gl/x11: fix memory leak when retrieiving a foreign context's info The FBConfig's were being leaked. Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/x11/gstglcontext_glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/x11/gstglcontext_glx.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/x11/gstglcontext_glx.c index 7dd719a6c1..6b4a373706 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/x11/gstglcontext_glx.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/x11/gstglcontext_glx.c @@ -1044,6 +1044,8 @@ gst_gl_context_glx_fill_info (GstGLContext * context, GError ** error) GST_GL_CONTEXT_WRAPPED_GL_CONFIG_NAME, config, (GDestroyNotify) gst_structure_free); + XFree (fbconfigs); + return TRUE; failure: