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:
parent
84b7079020
commit
8ee4e198cc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user