pipeline: fix bus leak in seek test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 May 2016 07:32:47 +0000 (09:32 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 3 May 2016 08:02:47 +0000 (11:02 +0300)
gst_bus_add_signal_watch_full() keeps a ref on the bus which should
be released using gst_bus_remove_signal_watch().

https://bugzilla.gnome.org/show_bug.cgi?id=765903

tests/check/pipelines/seek.c

index bb3f904..5d030c5 100644 (file)
@@ -190,6 +190,7 @@ GST_START_TEST (test_seek)
   fail_unless (res != GST_STATE_CHANGE_FAILURE, NULL);
 
   /* cleanup */
+  gst_bus_remove_signal_watch (bus);
   gst_object_unref (bus);
   gst_object_unref (bin);
 }