From 0a2f2426b09ea9fa7d495ffcc9ff1c7c197689fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 23 Jul 2015 11:18:47 +0100 Subject: [PATCH] glimagesink: fix allocation meta structure leak gst_query_add_allocation_meta() does not take ownership of the structure, for some reason. CID 1312135 --- ext/gl/gstglimagesink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 1a8c934569..0528ed5c44 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -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 */