mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
This commit is contained in:
parent
2ec2e15a2a
commit
fc5cb1ec13
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue