liveadder: fix memory leak querying sink caps

https://bugzilla.gnome.org/show_bug.cgi?id=727894
This commit is contained in:
Santiago Carot-Nemesio 2014-04-09 15:07:19 +02:00 committed by Tim-Philipp Müller
parent b3a18a2fcc
commit 7d97a4b20b

View file

@ -827,6 +827,7 @@ gst_live_adder_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
gst_query_parse_caps (query, &filter);
result = gst_live_adder_sink_getcaps (adder, pad, filter);
gst_query_set_caps_result (query, result);
gst_caps_unref (result);
res = TRUE;
break;
}