mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue