tests: fix bus leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 15 Jul 2016 08:31:35 +0000 (10:31 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Jul 2016 11:41:12 +0000 (12:41 +0100)
gst_bus_remove_signal_watch() has to be called to release the ref
taken by gst_bus_add_signal_watch().

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

tests/check/elements/audiomixer.c

index 00be1c6..9ef5c3c 100644 (file)
@@ -723,6 +723,7 @@ GST_START_TEST (test_live_seeking)
     g_main_loop_unref (main_loop);
   if (play_seek_event)
     gst_event_unref (play_seek_event);
+  gst_bus_remove_signal_watch (bus);
   gst_object_unref (bus);
   gst_object_unref (bin);
 }