mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
glimagesink: fix allocation meta structure leak
gst_query_add_allocation_meta() does not take ownership of the structure, for some reason. CID 1312135
This commit is contained in:
parent
7ecf6b0d6c
commit
2992ff98e5
1 changed files with 3 additions and 0 deletions
|
@ -1569,6 +1569,9 @@ gst_glimage_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query)
|
||||||
gst_query_add_allocation_meta (query,
|
gst_query_add_allocation_meta (query,
|
||||||
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, allocation_meta);
|
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, allocation_meta);
|
||||||
|
|
||||||
|
if (allocation_meta)
|
||||||
|
gst_structure_free (allocation_meta);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
|
Loading…
Reference in a new issue