inter: Unref bus after usage

gst_pipeline_get_bus() returns a reference to a bus that needs to
be unreferenced after usage.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734525
This commit is contained in:
Sebastian Rasmussen 2014-08-09 11:41:17 +02:00 committed by Sebastian Dröge
parent 84b7079020
commit 8ee4e198cc

View file

@ -135,6 +135,11 @@ gst_inter_test_free (GstInterTest * intertest)
intertest->sink_element = NULL;
}
if (intertest->bus) {
gst_object_unref (intertest->bus);
intertest->bus = NULL;
}
if (intertest->pipeline) {
gst_element_set_state (intertest->pipeline, GST_STATE_NULL);
gst_object_unref (intertest->pipeline);