From f686c890e4741a49e00aabcedb04efc7fa2e078c 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 5f22506570..7d91f17394 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; }