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:
parent
c6636533d4
commit
3e13fc4f88
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user