deinterlace: do not leak getcaps result

This commit is contained in:
Mark Nauwelaerts 2012-09-06 16:30:44 +02:00
parent 45e5ec29ac
commit a4458f5f74

View file

@ -2587,6 +2587,7 @@ gst_deinterlace_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
gst_query_parse_caps (query, &filter);
caps = gst_deinterlace_getcaps (self, pad, filter);
gst_query_set_caps_result (query, caps);
gst_caps_unref (caps);
res = TRUE;
break;
}