videoscale: fix bus leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 12 Jul 2016 10:03:53 +0000 (12:03 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 12 Jul 2016 10:12:19 +0000 (13:12 +0300)
gst_bus_add_signal_watch() takes a ref on the bus which should be
released using gst_bus_remove_signal_watch().

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

tests/check/elements/videoscale.c

index 9762048..877df4f 100644 (file)
@@ -633,6 +633,7 @@ _test_negotiation (const gchar * src_templ, const gchar * sink_templ,
   g_signal_connect (bus, "message", G_CALLBACK (_test_negotiation_message),
       &data);
 
+  gst_bus_remove_signal_watch (bus);
   gst_object_unref (bus);
 
   fail_unless (gst_element_set_state (pipeline,