glmixer: plug a memory leak for the caps

gst_query_set_caps_result() takes a ref on the caps
This commit is contained in:
Matthew Waters 2014-06-26 10:54:38 +10:00 committed by Tim-Philipp Müller
parent 6cea67b92a
commit 4131456751

View file

@ -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); caps = gst_caps_intersect_full (filter, caps, GST_CAPS_INTERSECT_FIRST);
gst_query_set_caps_result (query, caps); gst_query_set_caps_result (query, caps);
gst_caps_unref (caps);
return TRUE; return TRUE;
} }