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:
Tim-Philipp Müller 2015-07-23 11:18:47 +01:00
parent 7ecf6b0d6c
commit 2992ff98e5

View file

@ -1569,6 +1569,9 @@ gst_glimage_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query)
gst_query_add_allocation_meta (query,
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, allocation_meta);
if (allocation_meta)
gst_structure_free (allocation_meta);
return TRUE;
/* ERRORS */