From 413145675152f77baae7c948c4cf3343a37f42b5 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 26 Jun 2014 10:54:38 +1000 Subject: [PATCH] glmixer: plug a memory leak for the caps gst_query_set_caps_result() takes a ref on the caps --- gst-libs/gst/gl/gstglmixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/gstglmixer.c b/gst-libs/gst/gl/gstglmixer.c index 5f22506..7d91f17 100644 --- a/gst-libs/gst/gl/gstglmixer.c +++ b/gst-libs/gst/gl/gstglmixer.c @@ -538,6 +538,7 @@ gst_gl_mixer_query_caps (GstPad * pad, GstAggregator * agg, GstQuery * query) caps = gst_caps_intersect_full (filter, caps, GST_CAPS_INTERSECT_FIRST); gst_query_set_caps_result (query, caps); + gst_caps_unref (caps); return TRUE; } -- 2.7.4