summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-19 11:19:20 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-21 10:52:47 +0300
commitfc5cb1ec137f07d457a23819adc3e18db9f4315e (patch)
tree751f20c5eb46d76e9aeb85eb0ac4ff718566d17e
parent2ec2e15a2a559718c26e8cc17c5d6498f6f17d80 (diff)
fix event leaks in tests
The events are supposed to be unreffed when finishing the test, not reffed. https://bugzilla.gnome.org/show_bug.cgi?id=766663
-rw-r--r--tests/check/elements/audiomixer.c4
-rw-r--r--tests/check/elements/compositor.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/check/elements/audiomixer.c b/tests/check/elements/audiomixer.c
index 55ea92ef1..00be1c6ee 100644
--- a/tests/check/elements/audiomixer.c
+++ b/tests/check/elements/audiomixer.c
@@ -431,7 +431,7 @@ GST_START_TEST (test_play_twice)
/* cleanup */
g_main_loop_unref (main_loop);
gst_consistency_checker_free (consist);
- gst_event_ref (play_seek_event);
+ gst_event_unref (play_seek_event);
gst_bus_remove_signal_watch (bus);
gst_object_unref (bus);
gst_object_unref (bin);
@@ -536,7 +536,7 @@ GST_START_TEST (test_play_twice_then_add_and_play_again)
/* cleanup */
g_main_loop_unref (main_loop);
- gst_event_ref (play_seek_event);
+ gst_event_unref (play_seek_event);
gst_consistency_checker_free (consist);
gst_bus_remove_signal_watch (bus);
gst_object_unref (bus);
diff --git a/tests/check/elements/compositor.c b/tests/check/elements/compositor.c
index 258d1d96c..e9f016543 100644
--- a/tests/check/elements/compositor.c
+++ b/tests/check/elements/compositor.c
@@ -754,7 +754,7 @@ GST_START_TEST (test_play_twice)
/* cleanup */
g_main_loop_unref (main_loop);
gst_consistency_checker_free (consist);
- gst_event_ref (play_seek_event);
+ gst_event_unref (play_seek_event);
gst_bus_remove_signal_watch (bus);
gst_object_unref (bus);
gst_object_unref (bin);
@@ -857,7 +857,7 @@ GST_START_TEST (test_play_twice_then_add_and_play_again)
/* cleanup */
g_main_loop_unref (main_loop);
- gst_event_ref (play_seek_event);
+ gst_event_unref (play_seek_event);
gst_consistency_checker_free (consist);
gst_bus_remove_signal_watch (bus);
gst_object_unref (bus);