mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue