gl/x11: fix memory leak when retrieiving a foreign context's info

The FBConfig's were being leaked.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6160>
This commit is contained in:
Matthew Waters 2024-02-07 12:26:04 +11:00 committed by Tim-Philipp Müller
parent c6636533d4
commit 3e13fc4f88

View file

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