diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2014-08-09 11:41:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-08-11 10:02:44 +0200 |
commit | 8ee4e198cc820d869da20c83a71246a6af50d1ae (patch) | |
tree | a130d6f0886af9400f3dfabeff8c25d8b883d6a7 /gst/inter | |
parent | 84b7079020f566ba48780c4a05273d680044ae55 (diff) |
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
Diffstat (limited to 'gst/inter')
-rw-r--r-- | gst/inter/gstintertest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/inter/gstintertest.c b/gst/inter/gstintertest.c index 00f0bc0d7..ee396f6c5 100644 --- a/gst/inter/gstintertest.c +++ b/gst/inter/gstintertest.c @@ -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); |