From f1f13de8d7efaf8b9f372312342ff82f2bc35678 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 19 May 2016 11:19:20 +0300 Subject: [PATCH] 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 --- tests/check/elements/audiomixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check/elements/audiomixer.c b/tests/check/elements/audiomixer.c index 55ea92ef16..00be1c6eeb 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);