tests: make pipeline test valgrind clean

This commit is contained in:
Tim-Philipp Müller 2012-08-12 16:40:03 +01:00
parent 31e28180b3
commit 79c0d2a276

View file

@ -38,6 +38,7 @@ GST_START_TEST (test_async_state_change_empty)
fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline), fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline),
GST_STATE_PLAYING), GST_STATE_CHANGE_SUCCESS); GST_STATE_PLAYING), GST_STATE_CHANGE_SUCCESS);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
gst_object_unref (pipeline); gst_object_unref (pipeline);
} }
@ -60,6 +61,7 @@ GST_START_TEST (test_async_state_change_fake_ready)
fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline), fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline),
GST_STATE_READY), GST_STATE_CHANGE_SUCCESS); GST_STATE_READY), GST_STATE_CHANGE_SUCCESS);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
gst_object_unref (pipeline); gst_object_unref (pipeline);
} }